getPath method

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

Get Path for star transformed based on start angle startAngle, side indent factor indentSideFactor, size of drawing area, stretched based on boxFit with corners rounded with specified cornerRadius.

Implementation

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