NotInRule class
Validates that a value is not among the supplied options.
- Inheritance
-
- Object
- ValidationRule
- NotInRule
Constructors
Properties
-
contextValues
→ Map<
String, dynamic> ? -
The input values made available to a context-aware rule.
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- name → String
-
The normalized name used in validation rule strings.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
message(
dynamic value, [List< String> ? options]) → String -
Returns the default message for a failed validation.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
validate(
dynamic value, [List< String> ? options]) → bool -
Returns whether
valuesatisfies this rule.override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited