isWhitespace static method

bool isWhitespace(
  1. String s
)

Implementation

static bool isWhitespace(String s) {
  return s.runes
      .every((int rune) => String.fromCharCode(rune).trim().isEmpty);
}