Req class Null safety

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. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

call(Object? input) String?
Valid - returns null - if input is neither null nor empty.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
inherited

Operators

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