freeStyleStrokeWidth property

double get freeStyleStrokeWidth

The stroke width used for free-style drawing from value.settings.freeStyle directly.

Implementation

double get freeStyleStrokeWidth => value.settings.freeStyle.strokeWidth;
set freeStyleStrokeWidth (double strokeWidth)

The stroke width used for free-style drawing from value.settings.freeStyle directly.

Setting this will notify all the listeners of this PainterController that they need to update (it calls notifyListeners). For this reason, this value should only be set between frames, e.g. in response to user actions, not during the build, layout, or paint phases.

Implementation

set freeStyleStrokeWidth(double strokeWidth) => value = value.copyWith(
        settings: value.settings.copyWith(
            freeStyle: value.settings.freeStyle.copyWith(
      strokeWidth: strokeWidth,
    )));