getValueOrDefault

fun <T> getValueOrDefault(field: Field<T>, defaultValue: T): T

Retrieves the value of the specified field. Returns defaultValue if the data does not contain any value for the specified field.

This is a generic type function, so the class type of the returned object is determined by the input field.

Since

1.0.0

Preferences Submitted

You have successfully updated your cookie preferences.