isEmpty property

bool get isEmpty

Returns true if the string is empty after trimming whitespace.

Implementation

bool get isEmpty => value.trim().isEmpty;