isBlank property

bool get isBlank

Returns true if string is blank (empty or only whitespace)

Implementation

bool get isBlank => trim().isEmpty;