isBlank function

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