isEmptyOrWhitespace property

bool get isEmptyOrWhitespace

Determines whether the string is empty or contains only whitespaces.

Implementation

bool get isEmptyOrWhitespace => isEmpty || trim().isEmpty;