OutlineFilter constructor

OutlineFilter({
  1. Color color = kColorBlack,
  2. double width = 1,
  3. bool adjustToScale = false,
})

Creates a new OutlineFilter with the specified properties.

The color parameter is used to set the color of the outline. The default value is kColorBlack.

The width parameter is used to set the width of the outline, in logical pixels. The default value is 1.

The adjustToScale parameter is used to adjust the filter's properties based on the owner's scale. If this parameter is set to true, the filter's properties will be adjusted based on the scale of the object that the filter is applied to. The default value is false.

Implementation

OutlineFilter({
  this.color = kColorBlack,
  this.width = 1,
  this.adjustToScale = false,
}) {
  dirty = true;
}