point method

PointType point(
  1. Iterable coords
)

Parses a point geometry from coords containing at least 2 valid values.

Assumes that coords contains only num objects (that is either double or int objects).

Throws FormatException if cannot create point.

Implementation

PointType point(Iterable<dynamic> coords) => pointFactory
    .newFrom(coords is Iterable<num> ? coords : coords.cast<num>());