isNotBlank function

bool isNotBlank(
  1. 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;