returns true if the string only contains whitespace characters. We use the same definition of whitespace as String.trim.
string
static bool isWhitespace(String string) => Style.isWhitespace(string);