TextScaleAddon constructor

TextScaleAddon({
  1. @Deprecated('Use TextScaleAddon.min and TextScaleAddon.max instead') List<double>? scales,
  2. double? initialScale,
  3. double min = 0.5,
  4. double max = 2.0,
  5. int divisions = 6,
})

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',
      );