isBlank function

bool isBlank (String s)

Returns true if s is either null, empty or is solely made of whitespace characters (as defined by String.trim).

Implementation

bool isBlank(String s) => s == null || s.trim().isEmpty;