isNullOrEmpty method

bool isNullOrEmpty()

Return true if given string is null or empty

Implementation

bool isNullOrEmpty() =>
    (this == null || this?.isEmpty == true) ? true : false;