strokeInset property

double get strokeInset

Get the amount of the stroke width that lies inside of the WxBorderSide.

For example, this will return the effectiveWidth for a offset of -1, half the effectiveWidth for a offset of 0, and 0 for a offset of 1.

Implementation

double get strokeInset => effectiveWidth * (1 - (1 + effectiveOffset) / 2);