FormCompanionPropertyDescriptorsBuilderExtension extension

Defines convinient extension methos for PropertyDescriptorsBuilder to define typical type combinations.

on

Methods

bigIntText({required String name, List<FormFieldValidatorFactory<String>>? validatorFactories, List<AsyncValidatorFactory<String>>? asyncValidatorFactories, BigInt? initialValue, StringConverter<BigInt>? stringConverter, PropertyValueTraits? valueTraits}) → void
Defines a new property with property value type BigInt and form field value type String.
boolean({required String name, bool initialValue = false, PropertyValueTraits? valueTraits}) → void
Defines a new property with bool for both of property value type and form field value type.
enumerated<T extends Enum>({required String name, T? initialValue, PropertyValueTraits? valueTraits, required Iterable<T> enumValues}) → void
Defines a new property with enum type T for both of property value type and form field value type.
integerText({required String name, List<FormFieldValidatorFactory<String>>? validatorFactories, List<AsyncValidatorFactory<String>>? asyncValidatorFactories, int? initialValue, StringConverter<int>? stringConverter, PropertyValueTraits? valueTraits}) → void
Defines a new property with property value type int and form field value type String.
realText({required String name, List<FormFieldValidatorFactory<String>>? validatorFactories, List<AsyncValidatorFactory<String>>? asyncValidatorFactories, double? initialValue, StringConverter<double>? stringConverter, PropertyValueTraits? valueTraits}) → void
Defines a new property with property value type double and form field value type String.
string({required String name, List<FormFieldValidatorFactory<String>>? validatorFactories, List<AsyncValidatorFactory<String>>? asyncValidatorFactories, String? initialValue, PropertyValueTraits? valueTraits}) → void
Defines a new property with String for both of property value type and form field value type.
stringConvertible<P extends Object>({required String name, List<FormFieldValidatorFactory<String>>? validatorFactories, List<AsyncValidatorFactory<String>>? asyncValidatorFactories, P? initialValue, required StringConverter<P>? stringConverter, PropertyValueTraits? valueTraits}) → void
Defines a new property with property value type P and form field value type String.
uriText({required String name, List<FormFieldValidatorFactory<String>>? validatorFactories, List<AsyncValidatorFactory<String>>? asyncValidatorFactories, Uri? initialValue, StringConverter<Uri>? stringConverter, PropertyValueTraits? valueTraits}) → void
Defines a new property with property value type Uri and form field value type String.