isBlank property

bool get isBlank

Whether this string contains only whitespaces.

Implementation

bool get isBlank => trim().isEmpty;