stroke property

dynamic get stroke

Gets or sets the Brush or string that describes how the geometry is drawn as if by a pen.

The default value is "black", causing the shape to be outlined in black. Any valid CSS string can specify a solid color, and the Brush class can be used to specify a gradient or pattern. A null stroke will mean no stroke is drawn. A "transparent" stroke is useful when wanting to allow a shape to be pickable without obscuring any other objects behind it. More information about the syntax of CSS color strings is available at: CSS colors (mozilla.org).

The stroke is drawn after the geometry is filled with the #fill Brush.

Implementation

_i2.dynamic get stroke => _i4.getProperty(
      this,
      'stroke',
    );
set stroke (dynamic value)

Implementation

set stroke(_i2.dynamic value) {
  _i4.setProperty(
    this,
    'stroke',
    value,
  );
}