isWhitespace function

bool isWhitespace(
  1. String s
)

Checks if the string consists only of whitespace characters (or is empty).

Implementation

bool isWhitespace(String s) => Patterns.whitespace.hasMatch(s);