isEmpty property

bool isEmpty

Returns true if length is 0 and NOT null.

Implementation

bool get isEmpty {
  var l = length;
  return l != null && l == 0;
}