isEmpty property

bool get isEmpty

Returns if the FeatureCollection is empty.

Example:

FeatureCollection([
  LineString([Coordinate(1, 2), Coordinate(3, 4)])
]).isEmpty; // false
FeatureCollection([]).isEmpty; // true

Implementation

bool get isEmpty => features.isEmpty;