strokeInset property

double strokeInset

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

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

Implementation

double get strokeInset => width * (1 - (1 + strokeAlign) / 2);