minScale property
double
get
minScale
The minimum scale that the user can "zoom out" to from value.settings.scale
directly.
Implementation
double get minScale => value.settings.scale.minScale;
set
minScale
(double minScale)
The minimum scale that the user can "zoom out" to from value.settings.scale
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 minScale(double minScale) => value = value.copyWith(
settings: value.settings
.copyWith(scale: value.settings.scale.copyWith(minScale: minScale)));