empty property

  1. @useResult
bool get empty

Return true if this is empty, i.e. [a..a).

Only a range with bounds at both ends, i.e. Interval, can be empty.

final interval = Interval.openClosed(1, 1);

print(interval.empty); // true

Implementation

@useResult bool get empty;