ListenableValidationController<K> class
abstract
ValidationController that uses ValueListenable as error bucket
- Inheritance
-
- Object
- ValidationController<
K> - ListenableValidationController
- Implementers
Constructors
Properties
- disposed → bool
-
Returns
true
whenever controller is disposedno setterinherited -
errors
→ Map<
K, String> -
Sync access to current validation error messages
no setterinherited
-
errorsNotifier
→ ValueListenable<
Map< K, String> > -
ValueListenable with all validation error messages.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- isValid → bool
-
Sync access to validation state
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
addConnector(
ValidationConnector< K, dynamic> connector) → void -
Add ValidationConnector to the active list.
inherited
-
addErrors(
Map< K, String> errors) → void -
Replace error messages
inherited
-
addFieldError(
K field, String error) → void -
Add error message for some particular field
inherited
-
attachConnectors(
Iterable< ValidationConnector< connectors) → voidK, dynamic> > -
Attach multiple ValidationConnector to the controller
inherited
-
clearErrors(
) → void -
Clear all validation errors
inherited
-
clearFieldError(
K field) → void -
Remove error message from particular field
inherited
-
dispose(
) → void -
Dispose method.
inherited
-
fieldError(
K field) → String? -
Sync access to the validation error message if there is one
inherited
-
fieldErrorProvider(
K field) → ErrorProvider< K> -
Provides ErrorProvider with validation error value
for particular field.
inherited
-
fieldsError(
Iterable< K> fields) → Iterable<String> -
Sync access to the validation error message if there is any.
inherited
-
fieldsErrorProvider(
Iterable< K> fields) → ErrorsProvider<K> -
Provides ErrorsProvider with validation errors
from multiple fields.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
removeConnector(
ValidationConnector< K, dynamic> connector) → void -
Remove ValidationConnector.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
validate(
) → Future< void> -
Invoke validation across all connected ValidationConnector
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited