hasWhitespace property

bool get hasWhitespace

True if there is whitespace in the string, False otherwise.

Implementation

bool get hasWhitespace =>
    isNotEmpty && characters.any((s) => _whitespaceChar.hasMatch(s));