former library
The main library for former. Exports all consumable components of this library.
Classes
-
Former<
TForm extends FormerForm> - Provides child widgets with the given form that needs to conform to the given schema.
-
FormerCheckbox<
TForm extends FormerForm> - A normal Checkbox that
-
FormerError<
TForm extends FormerForm> - A widget that shows an error message of the given field. If the field doesn't have any error, an empty Container is built.
- FormerField
- Describes a field in FormerForm.
- FormerForm
- A form that will be consumed by Former. This ensures the form class interfaces with this library properly.
-
FormerProvider<
TForm extends FormerForm> -
FormerSchema<
TForm extends FormerForm> - A schema for FormerForm that checks whether a FormerForm conforms to the schema.
-
FormerSlider<
TForm extends FormerForm> - A normal Slider that:
-
FormerSwitch<
TForm extends FormerForm> - A normal Switch that:
-
FormerTextField<
TForm extends FormerForm> - A normal TextField that
Typedefs
-
FormCreator<
F extends FormerForm> = F Function() - A function that creates a FormerForm.
-
SchemaCreator
= FormerSchema<
FormerForm> Function() - A function that creates a FormerSchema for a FormerForm.
Exceptions / Errors
- FormInvalidException
- Thrown when FormerForm is submitted but it does not conform to its schema.