ScaleSettings constructor
Creates a ScaleSettings with the given enabled
, minScale
and maxScale
values.
minScale
will be set to 1
if the provided value is not positive.
maxScale
will be set equal to minScale
if the provided value is less than minScale
.
Implementation
const ScaleSettings({
this.enabled = false,
double minScale = 1,
double maxScale = 5,
}) : minScale = minScale <= 0 ? 1 : minScale,
maxScale = maxScale >= minScale ? maxScale : minScale;