segments property
A list of even length with a minimum of 2, in the form of
[a₁, b₁, (a₂, b₂, ...)]
, where a
should be the length of segments in
'units', and b
the length of the space after each segment in units. Both
values must be strictly positive.
'Units' refers to pixels, unless the pattern has been scaled due to the use of PatternFit.scaleUp.
If more than two items are specified, then each segments will alternate/iterate through the values.
For example, [50, 10]
will cause:
- a segment of length 50px
- followed by a space of 10px
- followed by a segment of length 50px
- followed by a space of 10px
- etc...
For example, [50, 10, 10, 10]
will cause:
- a segment of length 50px
- followed by a space of 10px
- followed by a segment of length 10px
- followed by a space of 10px
- followed by a segment of length of 50px
- followed by a space of 10px
- etc...
Implementation
final List<double>? segments;