isBlank property

bool isBlank

Whether the string is either empty or solely made of whitespace characters.

Implementation

bool get isBlank => trim().isEmpty;