FormPropertiesExtension extension
Provides convinient members to access properties.
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 specifiedinitialValue
, 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 specifiedonChanged
, 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 specifiedonChanged
, 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.