ArrayRule class
The ArrayRule Rule.
Validates that the field is a List. Mirrors Laravel's array rule;
named ArrayRule because Array is not a Dart keyword but reads poorly
next to List, the type it actually checks.
Usage
validate(data, {
'tags': [Required(), ArrayRule()],
});
Properties
Methods
-
message(
) → String -
Get the validation error message.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
params(
) → Map< String, dynamic> -
Get the replacement parameters for the message.
inherited
-
passes(
String attribute, dynamic value, Map< String, dynamic> data) → bool -
Determine if the validation rule passes.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited