strokeInset property
double
get
strokeInset
Implementation
double get strokeInset {
double inset = 0.0;
double width = strokeWidth;
if (style == PaintingStyle.stroke && width > 0) {
if (strokeAlign == StrokeAlign.inside) {
inset = width / 2;
} else if (strokeAlign == StrokeAlign.outside) {
inset = -width / 2;
}
}
return inset;
}