isBlank property

bool get isBlank

Returns true if this String is empty or contains only whitespaces.

Implementation

bool get isBlank => isEmpty || codeUnits.every((unit) => unit == _whitespace);