Validatable mixin

An interface for objects that can be validated.

Mixin Applications

Properties

hashCode int
The hash code for this object.
no setterinherited
isValid bool
Returns true if this instance is valid.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

checkValid() → void
Checks if this instance is valid.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
validate() Object?
Validates the instance. Returns the invalid Object or null when valid.

Operators

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