DashPattern constructor
- double gapLength,
- double dashLength
Creates a simple dash pattern in which the lengths of a dash and gap can be different.
This allows for patterns like ' — — — —' or ' ——— ——— ———'.
-
gapLengthThe length of a gap in pixels. Clamped to the range of [1, 500]. -
dashLengthThe length of a dash in pixels. Clamped to the range of [1, 500].
Implementation
factory DashPattern(double gapLength, double dashLength) => $prototype.$init(gapLength, dashLength);