Point3.parse constructor

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

A point parsed from text with coordinates in order: x, y, z.

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

Throws FormatException if cannot parse.

Implementation

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