LoRequiredValidator<T> class

Validates that the given value is not null or empty.

Implemented types

Constructors

LoRequiredValidator([String message = 'Required'])
LoRequiredValidator.nullOnly([String message = 'Required'])

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
validateEmpty bool
Validates that the given value is not "empty", which is relative to T, the empty values for primitive types are:
final

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(T? value) String?
Returns String containing the error message if value is invalid. or null when value is valid.
override

Operators

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