toOffsetList static method

dynamic toOffsetList(
  1. List<GeoCoordinate2D> coords
)

Convert a 2-dimensional coordinate array in Offset array

Implementation

static toOffsetList(List<GeoCoordinate2D> coords) =>
    coords.map((coord) => Offset(coord.x, coord.y)).toList();