isEmptyByGeometry property

  1. @override
bool isEmptyByGeometry
override

Returns true if this geometry is considered empty.

Emptiness in the context of this classes extending Geometry is defined:

  • Point has x and y coordinates with value double.nan.
  • LineString has an empty chain of points.
  • Polygon has an empty list of linear rings.
  • MultiPoint has no points.
  • MultiLineString has no line strings.
  • MultiPolygon has no polygons.
  • GeometryCollection has no geometries.

The specification from Bounded: "Returns true if this bounded object is considered empty (that is it do not contain any geometry directly or on child objects, or geometry contained is empty)".

Implementation

@override
bool get isEmptyByGeometry => _geometries.isEmpty;