GeoPoint2.parse constructor
GeoPoint2.parse(
- String text, {
- ParseCoords? parser,
A point parsed from text
with coordinates in order: lon, lat.
If parser
is null, then WKT text
like "10.0 20.0" is expected.
Throws FormatException if cannot parse.
Implementation
factory GeoPoint2.parse(String text, {ParseCoords? parser}) => parser != null
? GeoPoint2.from(parser.call(text))
: parseWktPoint<GeoPoint2>(text, GeoPoint2.coordinates);