isWhitespace property

bool get isWhitespace

True if the string is entirely made up of whitespace characters, False otherwise.

Implementation

bool get isWhitespace =>
    isNotEmpty && all((s) => _whitespaceChar.hasMatch(s));