FormPropertiesExtension extension

Provides convinient members to access properties.

on

Methods

getFieldValidator<F extends Object>(String name, BuildContext context) FormFieldValidator<F>

Available on FormProperties, provided by the FormPropertiesExtension extension

Gets a validator to validate form field input.
getInitialValue<F extends Object>(BuildContext context, String name) → F?

Available on FormProperties, provided by the FormPropertiesExtension extension

Wraps specified initialValue, which is taken from PropertyDescriptor.getFieldValue, with infrastructure support logic for state restoration.
hasPendingAsyncValidations(String name) bool

Available on FormProperties, provided by the FormPropertiesExtension extension

Gets a value which indicates that specified property has pencing asynchronous validation or not.
onChanged<F extends Object>(BuildContext context, String name, [ValueSetter<F?>? onChanged]) ValueSetter<F?>

Available on FormProperties, provided by the FormPropertiesExtension extension

Wraps specified onChanged, which takes nullable value, with infrastructure support logic for state restoration.
onChangedNonNull<F extends Object>(BuildContext context, String name, [ValueSetter<F>? onChanged]) ValueSetter<F>

Available on FormProperties, provided by the FormPropertiesExtension extension

Wraps specified onChanged, which takes non-nullable value, with infrastructure support logic for state restoration.
savePropertyValue(String name, BuildContext context) → void Function(dynamic)

Available on FormProperties, provided by the FormPropertiesExtension extension

Gets a setter to set a proprty value with validated form field input.