bigIntWithField<TField extends FormField<BigInt> > method
void
bigIntWithField<TField extends FormField<BigInt> >({
- required String name,
- List<
FormFieldValidatorFactory< ? validatorFactories,BigInt> > - List<
AsyncValidatorFactory< ? asyncValidatorFactories,BigInt> > - BigInt? initialValue,
- PropertyValueTraits? valueTraits,
Defines a new property with property value type BigInt
and preferred form field type TField
for form field value type String.
Note that name
must be unique, and validators are registered as
factories instead of normal closures (function objects) because some
validation framework requires live BuildContext to initialize validator,
and current Locale of the application should be stored to
BuildContext.
TField
affects FormFieldFactory
generation by form_companion_generator
.
Implementation
void bigIntWithField<TField extends FormField<BigInt>>({
required String name,
List<FormFieldValidatorFactory<BigInt>>? validatorFactories,
List<AsyncValidatorFactory<BigInt>>? asyncValidatorFactories,
BigInt? initialValue,
PropertyValueTraits? valueTraits,
}) =>
addWithField<BigInt, BigInt, TField>(
name: name,
validatorFactories: validatorFactories,
asyncValidatorFactories: asyncValidatorFactories,
initialValue: initialValue,
valueTraits: valueTraits,
restorableValueFactory: bigIntRestorableValueFactory,
);