strokeDashArray property

Array<num>? get strokeDashArray

Gets or sets the dash array for creating dashed or dotted lines. The value must be an array of positive numbers and zeroes, or else null to indicate a solid line. For example, the array 5, 10 would create dashes of 5 pixels and spaces of 10 pixels. For more information, see Stroke Line Dash Array (w3.org).

The default value is null, resulting in a line without dashes or dots. Setting an array with all zeroes will set the value to null.

Implementation

_i7.Array<_i2.num>? get strokeDashArray => _i4.getProperty(
      this,
      'strokeDashArray',
    );
set strokeDashArray (Array<num>? value)

Implementation

set strokeDashArray(_i7.Array<_i2.num>? value) {
  _i4.setProperty(
    this,
    'strokeDashArray',
    value ?? _i5.undefined,
  );
}