isEmptyOrNull property

bool get isEmptyOrNull

Checks if the given String is null or empty.

Example:

String? value = null;
print(value.isEmptyOrNull); // true

Implementation

bool get isEmptyOrNull =>
    this == null ||
    (this != null && this!.isEmpty) ||
    (this != null && this! == 'null');