isBlank property

bool get isBlank

Returns true if this string is a blank by any chance.

Example: ' '.isBlank -> true.

Implementation

bool get isBlank => trim().isEmpty;