isBlank property
bool
isBlank
Checks if the String
is Blank (null, empty or only white spaces).
Implementation
bool get isBlank => this?.trim().isEmpty ?? true;
Checks if the String
is Blank (null, empty or only white spaces).
bool get isBlank => this?.trim().isEmpty ?? true;