isEmptyOrNull property

bool isEmptyOrNull

Returns true if given String is null or isEmpty

Implementation

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