tryParse static method

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

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.

Returns null if cannot parse.

Implementation

static Point3? tryParse(String text, {ParseCoords? parser}) {
  try {
    return Point3.parse(text, parser: parser);
  } on Exception {
    return null;
  }
}