isNullOrEmpty property
bool
get
isNullOrEmpty
Returns true if this string is null or empty.
Example:
final text = ' ';
final isNullOrEmpty = text.isNullOrEmpty;
// returns: true
Implementation
bool get isNullOrEmpty {
final trim = this?.trim();
return trim == null || trim.isEmpty;
}