Validator class abstract

A class used to assert that a value respects some rules.

As opposed to assert, this class works in release mode too.

Implementers

Constructors

Validator()
A class used to assert that a value respects some rules.
const

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
toString() String
A string representation of this object.
inherited
validate(Object? value, String propertyName) → void

Operators

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