isNotNullOrEmpty property

bool get isNotNullOrEmpty

Returns true if the string is not null and not empty.

Example:

''.isNotNullOrEmpty; // false
'text'.isNotNullOrEmpty; // true

Implementation

bool get isNotNullOrEmpty => !isEmpty;