isNotBlank function

bool isNotBlank (String s)

Returns true if s is neither null, empty nor is solely made of whitespace characters.

See also:

Implementation

bool isNotBlank(String s) => s != null && s.trim().isNotEmpty;