isBlank property

bool get isBlank

Checks if the String is Blank (null, empty or only white spaces).

Implementation

bool get isBlank => trim().isEmpty;