isNotNullOrEmpty property
bool
get
isNotNullOrEmpty
Returns true if the string is not null and not empty.
Example:
String? s = 'hello';
s.isNotNullOrEmpty; // true
value?.isNotNullOrEmpty; // returns true or false
Implementation
bool get isNotNullOrEmpty => this != null && this!.isNotEmpty;