FormerProvider<TForm extends FormerForm> class

Inheritance

Constructors

FormerProvider(BuildContext _context, TForm form, FormerSchema<FormerForm> _schema)

Properties

form → TForm
final
hashCode int
The hash code for this object.
no setterinherited
hasListeners bool
Whether any listeners are currently registered.
no setterinherited
isFormEnabled bool
Whether form is enabled and can be edited.
getter/setter pair
isFormValid bool
Validates form that it conforms to the schema and returns whether it is valid. Listeners of FormerProvider are notified when this getter is called.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

addListener(VoidCallback listener) → void
Register a closure to be called when the object changes.
inherited
dispose() → void
Discards any resources used by the object. After this is called, the object is not in a usable state and should be discarded (calls to addListener will throw after the object is disposed).
inherited
errorOf(FormerField field) String
Retrieves the error message of field. Empty if field is valid.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
notifyListeners() → void
Call all the registered listeners.
inherited
removeListener(VoidCallback listener) → void
Remove a previously registered closure from the list of closures that are notified when the object changes.
inherited
submit<T>() Future<T>
Checks if form is valid, then submits form by calling FormerForm.submit. (FormerForm is extended by your own form classes, so FormerForm.submit should contain your own implementations of how to submit the forms).
toString() String
A string representation of this object.
inherited
update({required FormerField field, required dynamic withValue}) → void
Updates field of FormerProvider.form with withValue.

Operators

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