isEmptyOrNull property

bool get isEmptyOrNull

Checks if the given String s is null or empty

Implementation

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