Req class

Validator for mandatory input data.

It will reject null or empty input values.

Note: the accepted input types are String, Iterable, and Map.

Constructors

Req({String? blank})
Checks whether an input value is blank — that is, whether the input value is either null or empty.
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

call(Object? input) String?
Valid - returns null - if input is neither null nor empty.
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 ==(Object other) bool
The equality operator.
inherited