WeFormController class

Drives a WeForm from outside: validate, reset, scroll to a field.

Constructors

WeFormController()

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

clearValidate([Iterable<String>? names]) → void
Removes the error messages without touching values.
errorOf(String name) → String?
The current error of the item named name.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
resetFields([Iterable<String>? names]) → void
Clears the errors and calls each item's onReset so its value goes back to the initial one.
scrollToField(String name) → Future<void>
Scrolls the item named name into view.
toString() → String
A string representation of this object.
inherited
validate() → Future<bool>
Runs every rule of every item; true when all pass. With WeForm.scrollToError the first failing item scrolls into view.
validateField(String name) → Future<bool>
Runs every rule of the item named name; true when it passes.

Operators

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