scaleSettings property

ScaleSettings get scaleSettings

The scale settings directly from the painter settings.

Implementation

ScaleSettings get scaleSettings => settings.scale;
set scaleSettings (ScaleSettings scaleSettings)

The scale 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 scaleSettings(ScaleSettings scaleSettings) => value = value.copyWith(
        settings: settings.copyWith(
      scale: scaleSettings,
    ));