isNullOrEmpty property
bool
get
isNullOrEmpty
Returns true if the list is null or empty.
Example:
List<int>? list;
list.isNullOrEmpty; // true
[].isNullOrEmpty; // true
[1, 2, 3].isNullOrEmpty; // false
value?.isNullOrEmpty; // returns true or false
Implementation
bool get isNullOrEmpty => this == null || this!.isEmpty;