setLineDashPattern method Null safety

void setLineDashPattern(
  1. [List<num> array = const <num>[],
  2. int phase = 0]
)

The dash array shall be cycled through, adding up the lengths of dashes and gaps. When the accumulated length equals the value specified by the dash phase

Example: 2 1 will create a dash pattern with 2 on, 1 off, 2 on, 1 off, ...

Implementation

void setLineDashPattern([List<num> array = const <num>[], int phase = 0]) {
  PdfArray.fromNum(array).output(_buf);
  _buf.putString(' $phase d\n');
}