DiscreteScale<V> constructor

DiscreteScale<V>({
  1. List<V>? values,
  2. bool? inflate,
  3. double? align,
  4. String? title,
  5. String? formatter(
    1. V
    )?,
  6. List<V>? ticks,
  7. int? tickCount,
})

Creates a discrete scale.

Implementation

DiscreteScale({
  this.values,
  this.inflate,
  this.align,
  String? title,
  String? Function(V)? formatter,
  List<V>? ticks,
  int? tickCount,
})  : assert(isSingle([inflate, align], allowNone: true)),
      super(
        title: title,
        formatter: formatter,
        ticks: ticks,
        tickCount: tickCount,
      );