Point2m.fromText constructor
A point parsed from text
with coordinates given in order: x, y, m.
Coordinate values in text
are separated by delimiter
. For example
Point2m.fromText('10.0;20.0;5', delimiter: ';')
returns the same point
as Point2m.xym(10.0, 20.0, 5)
.
If delimiter
is not provided, values are separated by whitespace.
Throws FormatException if cannot parse.
Implementation
factory Point2m.fromText(
String text, {
Pattern? delimiter,
}) =>
Point2m.from(
parseNumValuesFromText(text, delimiter: delimiter, minCount: 3),
);