isBlank property

bool get isBlank

Returns true if the string is blank or contains only whitespace.

Implementation

bool get isBlank => trim().isEmpty;