FormBuilder class

Creates an AbstractControl from a user-specified configuration.

Constructors

FormBuilder()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

array<T>(List<Object> value, [List<ValidatorFunction> validators = const [], List<AsyncValidatorFunction> asyncValidators = const []]) FormArray<T>
Construct a new FormArray instance.
control<T>(T value, [List<ValidatorFunction> validators = const [], List<AsyncValidatorFunction> asyncValidators = const []]) FormControl<T>
Construct a new FormControl instance.
group(Map<String, Object> controls, [List<ValidatorFunction> validators = const [], List<AsyncValidatorFunction> asyncValidators = const []]) FormGroup
Construct a new FormGroup instance.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
state<T>({T? value, bool? disabled}) ControlState<T>
Creates a ControlState.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited