ValidationError class Validation error

This class provides a error report in case of no-validation of the current model or property.

Constructors

ValidationError({@required String propertyName, @required Type validatorType, @required String error})

Properties

error String
This is the error to display (provided by developers).
final
hashCode int
The hash code for this object. [...]
read-only, inherited
propertyName String
This is the name of current property to validate.
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
validatorType Type
This is the validator type (Required, EqualTo, GreaterThan...)
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
inherited

Operators

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