getPath method

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

Get Path for polygon transformed based on start angle startAngle, size of drawing area, stretched based on boxFit with corners rounded with specified cornerRadius.

Implementation

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