freeStyleSettings property

FreeStyleSettings get freeStyleSettings

The free-style settings directly from the painter settings.

Implementation

FreeStyleSettings get freeStyleSettings => settings.freeStyle;
set freeStyleSettings (FreeStyleSettings freeStyleSettings)

The free-style settings directly from the painter settings.

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 freeStyleSettings(FreeStyleSettings freeStyleSettings) =>
    value = value.copyWith(
        settings: settings.copyWith(
      freeStyle: freeStyleSettings,
    ));