isNotNullOrEmpty property
bool
get
isNotNullOrEmpty
Returns true if the list is not null and contains at least one element.
Example:
List<int>? list = [1];
list.isNotNullOrEmpty; // true
value?.isNullOrEmpty; // returns true or false
Implementation
bool get isNotNullOrEmpty => this != null && this!.isNotEmpty;