isNullOrBlank property
bool
get
isNullOrBlank
Returns true if this is null, empty, or consists solely of
whitespace characters as defined by String.trim.
Implementation
bool get isNullOrBlank => this?.trim().isEmpty ?? true;