isNotNullOrEmpty property
bool
get
isNotNullOrEmpty
Returns true
if this nullable map is not null
and contains at least one key-value pair.
Example:
Map<String, int>? map = {"a": 1};
print(map.isNotNullOrEmpty); // true
Map<String, int>? emptyMap = {};
print(emptyMap.isNotNullOrEmpty); // false
Map<String, int>? nullMap = null;
print(nullMap.isNotNullOrEmpty); // false
Implementation
bool get isNotNullOrEmpty => !(this.isNullOrEmpty);