bounds method
Parses bounds geometry from coords
.
Assumes that coords
contains only num
objects (that is either double
or int
objects).
Throws FormatException if cannot create bounds.
Implementation
Bounds<PointType> bounds(Iterable<dynamic> coords) => boundsFactory(
coords is Iterable<num> ? coords : coords.cast<num>(),
pointFactory: pointFactory,
);