Req constructor
const
Req({
- String? blank,
Checks whether an input value is blank — that is, whether the input value is either null or empty.
blank
the error message in case of a null or empty input value; the
default value is 'required'.
Implementation
const Req({String? blank}) : _blank = blank ?? 'required';