isNullOrWhiteSpace method

bool isNullOrWhiteSpace()

Returns true if the string is null, empty, or contains only whitespace.

Implementation

bool isNullOrWhiteSpace() {
  return trim().isEmpty;
}