isEmpty property

bool get isEmpty

Checks if the string is null or empty.

Returns true if the string is null or empty, false otherwise.

Example:

print(''.isEmpty); // true
print('hello'.isEmpty); // false

Implementation

bool get isEmpty => this.length == 0;