Validator<ClassType> class
Constructors
-
Validator([List<
PropertyValidator> ? validators])
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
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
property(
{required String name, List< String> ? groups, List<ValidationRule> ? validations, List<SanitizeRule> ? sanitizers}) → void - Adds a new property validator.
-
sanitize(
Map values) → Map - Sanitize properties that have sanitizers.
-
toString(
) → String -
A string representation of this object.
inherited
-
validate(
Map values, {List< String> ? properties, List<String> ? groups, bool? whitelist = false}) → Future<List< String> > - Validates properties that have validators.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited