strokeOffset property

double get strokeOffset

The offset of the stroke, taking into account the stroke alignment.

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

Implementation

double get strokeOffset => width * strokeAlign;