getValueOrDefault

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

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

Return

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

Since

1.0.0

Preferences Submitted

You have successfully updated your cookie preferences.