ListSubValidator class
Runs a Validator on each element in a given list.
- Implemented types
- Available Extensions
Constructors
- ListSubValidator(String name, {required Validator validator})
-
name is traversed using JsonMap.read to find the base list
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- message → String
-
The message to be displayed if validate fails.
no setteroverride
- name → String
-
name is split using '.' and the map is traversed sequentially until the
value is returned.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- validator → Validator
-
Ran on each element in the sub list
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
validate(
Map< String, dynamic> map) → bool -
Returns true if the given
map
from BaseModel.toMap passes this Validator's check.override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited