getPath method

Path getPath({
  1. required GeoAngle rotate,
  2. bool clockwise = false,
  3. required Size size,
  4. BoxFit boxFit = BoxFit.none,
  5. double cornerRadius = 0,
})

Get Path based on coordinates defined and transformed based on rotation angle rotate, size of drawing area, stretched based on boxFit with corners rounded with specified cornerRadius.

Implementation

Path getPath(
    {required GeoAngle rotate,
    bool clockwise = false,
    required Size size,
    BoxFit boxFit = BoxFit.none,
    double cornerRadius = 0}) {
  List<GeoCoordinate2D> coords = getCoordinates(
      rotate: rotate, clockwise: clockwise, size: size, boxFit: boxFit);
  GeoPath geopath = GeoPath(coords);
  return geopath.roundedPath(cornerRadius);
}