GeoPoint2m.parse constructor

GeoPoint2m.parse(
  1. String text, {
  2. ParseCoords? parser,
})

A point parsed from text with coordinates in order: lon, lat, m.

If parser is null, then WKT text like "10.0 20.0 5" is expected.

Throws FormatException if cannot parse.

Implementation

factory GeoPoint2m.parse(String text, {ParseCoords? parser}) => parser != null
    ? GeoPoint2m.from(parser.call(text))
    : parseWktPoint<GeoPoint2m>(text, GeoPoint2m.coordinates);