DashPattern constructor

DashPattern(
  1. double gapLength,
  2. 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 ' ——— ——— ———'.

  • gapLength The length of a gap in pixels. Clamped to the range of [1, 500].

  • dashLength The length of a dash in pixels. Clamped to the range of [1, 500].

Implementation

factory DashPattern(double gapLength, double dashLength) => $prototype.$init(gapLength, dashLength);