isNotNullOrEmpty method

bool isNotNullOrEmpty()

Return true if given string is not null or empty

Implementation

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