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