TextScaleAddon constructor
TextScaleAddon({})
Implementation
TextScaleAddon({
@Deprecated('Use TextScaleAddon.min and TextScaleAddon.max instead')
this.scales,
this.initialScale,
this.min = 0.5,
this.max = 2.0,
this.divisions = 6,
}) : assert(
scales == null || scales.isNotEmpty,
'scales must not be empty, if set',
),
assert(
scales == null ||
initialScale == null ||
scales.contains(initialScale),
'initialScale must be in scales',
),
super(
name: 'Text scale',
);