fieldOrNull
Finds a mutable field by its label in the PreviewLabState.
Return
The field if found and matches the type, null otherwise
Example:
val intField = state.fieldOrNull<Int>("intValue")
if (intField != null) {
intField.value = 42
}Content copied to clipboard
Parameters
Value
The type of the field's value
label
The label of the field to find