Validator class abstract

Used to ensure that a BaseModel.toMap meets specific parameters.

Implementers
Available Extensions

Constructors

Validator()

Properties

hashCode int
The hash code for this object.
no setterinherited
message String
The message to be displayed if validate fails.
no setter
name String
name is split using '.' and the map is traversed sequentially until the value is returned.
no setter
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
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.

Operators

operator ==(Object other) bool
The equality operator.
inherited