isWhitespaceOnly property
True if this string is non-empty and contains only whitespace.
Implementation
@useResult
bool get isWhitespaceOnly => trim().isEmpty && isNotEmpty;
True if this string is non-empty and contains only whitespace.
@useResult
bool get isWhitespaceOnly => trim().isEmpty && isNotEmpty;