getPath method
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);
}