parsePoint function

Point<num>? parsePoint(
  1. Object? value
)

Parses value as a Point.

Implementation

Point<num>? parsePoint(Object? value) {
  if (value is List) return parsePointFromList(value);
  if (value is Map) return parsePointFromMap(value);
  if (value is String) return parsePointFromString(value);
  return null;
}