LyRequired<T> class

Type validation required.

If the provided value is null then it will be invalid and will return the error message, otherwise it returns null.

Constructors

LyRequired(String message)
Type validation required.

Properties

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

Methods

call(T value) String?
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator &(LyBaseValidator<T> other) → LyBaseValidator<T>
inherited
operator ==(Object other) bool
The equality operator.
inherited
operator |(LyBaseValidator<T> other) → LyBaseValidator<T>
inherited