onePoint property

  1. @override
Point<num>? get onePoint
override

Returns one of points contained by this geometry if it's not empty.

An immutable instance of the geometry class should always return the same point instance. For example a line string could return the first point of a chain.

Implementation

@override
Point? get onePoint => this;