isEmptyValue property
bool
get
isEmptyValue
Returns true if value is empty (null, empty string, empty map or list)
Implementation
bool get isEmptyValue {
if (this == null) return true;
if (this is String && (this as String).trim().isEmpty) return true;
if (this is Iterable && (this as Iterable).isEmpty) return true;
if (this is Map && (this as Map).isEmpty) return true;
return false;
}