IsEqualRule<T> class

Ensures that value is equal to given value.

Note that if you are going to use it with classes you may want to make sure to implement == operator.

Inheritance

Constructors

IsEqualRule(T value, String message)

Properties

hashCode int
The hash code for this object.
no setterinherited
message String
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value → T
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override
validate(dynamic valueToValidate) ValidationError?
override

Operators

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