FieldBondFormState extension
Extension methods for BondFormState providing convenience operations.
The FieldBondFormState
extension adds methods to BondFormState
to simplify
retrieving field states from the form state.
Example usage:
// Retrieve the state of a text field.
final phoneNumberFieldState = state.textField('phoneNumber');
Methods:
- textField Retrieves the state of a text field.
- radioGroup Retrieves the state of a radio group field.
- radioButtonsOf Retrieves a list of radio button states.
- checkbox Retrieves the state of a checkbox field.
- checkboxGroup Retrieves the state of a checkbox group field.
- checkboxesOf Retrieves a list of checkbox states.
- dateField Retrieves the state of a date field.
- dropDownField Retrieves the state of a dropdown field.
- dropDownItems Retrieves a list of dropdown items.
- asyncDropDownField Retrieves the state of an async dropdown field.
- asyncDropDownItems Retrieves a list of async dropdown items.
- hiddenField Retrieves the state of a hidden field.
- fileField Retrieves the state of a file field.
- on
-
- BondFormState<
dynamic, Error>
- BondFormState<
Methods
-
asyncDropDownField<
T> (String fieldName) → AsyncDropDownFieldState< T> -
Available on BondFormState<
Retrieves the state of the async dropdown field for a specifieddynamic, Error> , provided by the FieldBondFormState extensionfieldName
. -
asyncDropDownItems<
T> (String fieldName) → Future< List< DropDownItemState< >T> > -
Available on BondFormState<
Retrieves the list of dropdown items for a specifieddynamic, Error> , provided by the FieldBondFormState extensionfieldName
. -
checkbox(
String fieldName) → CheckboxFieldState< bool> -
Available on BondFormState<
Retrieves the state of the checkbox field for a specifieddynamic, Error> , provided by the FieldBondFormState extensionfieldName
. -
checkboxesOf<
T> (String fieldName) → List< CheckboxFieldState< T> > -
Available on BondFormState<
Retrieves a list of CheckboxFieldState for a specifieddynamic, Error> , provided by the FieldBondFormState extensionfieldName
. -
checkboxGroup<
T> (String fieldName) → CheckboxGroupFieldState< T> -
Available on BondFormState<
Retrieves the state of the checkbox group field for a specifieddynamic, Error> , provided by the FieldBondFormState extensionfieldName
. -
dateField(
String fieldName) → DateFieldState -
Available on BondFormState<
Retrieves the state of the date field for a specifieddynamic, Error> , provided by the FieldBondFormState extensionfieldName
. -
dropDownField<
T> (String fieldName) → DropDownFieldState< T> -
Available on BondFormState<
Retrieves the state of the dropdown field for a specifieddynamic, Error> , provided by the FieldBondFormState extensionfieldName
. -
dropDownItems<
T> (String fieldName) → List< DropDownItemState< T> > -
Available on BondFormState<
Retrieves the list of dropdown items for a specifieddynamic, Error> , provided by the FieldBondFormState extensionfieldName
. -
fileField(
String fieldName) → FileFieldState -
Available on BondFormState<
Retrieves the state of the file field for a specifieddynamic, Error> , provided by the FieldBondFormState extensionfieldName
. -
Available on BondFormState<
Retrieves the hidden field state for a specifieddynamic, Error> , provided by the FieldBondFormState extensionfieldName
. -
radioButtonsOf<
T> (String fieldName) → List< RadioButtonFieldState< T> > -
Available on BondFormState<
Retrieves a list of RadioButtonFieldState for a specifieddynamic, Error> , provided by the FieldBondFormState extensionfieldName
. -
radioGroup<
T> (String fieldName) → RadioGroupFieldState< T> -
Available on BondFormState<
Retrieves the state of the radio group field for a specifieddynamic, Error> , provided by the FieldBondFormState extensionfieldName
. -
textField(
String fieldName) → TextFieldState -
Available on BondFormState<
Retrieves the TextFieldState for a given text field.dynamic, Error> , provided by the FieldBondFormState extension