QudsAnimatedCounter constructor

const QudsAnimatedCounter(
  1. int number, {
  2. Key? key,
  3. int? length,
  4. TextStyle? style,
  5. Duration duration = const Duration(milliseconds: 200),
})

number the number will be shown in this counter, must be non-negative. length the length of the number (digits count). style the text style of the number. duration the duration of the transition time.

Implementation

const QudsAnimatedCounter(
  this.number, {
  Key? key,
  this.length,
  this.style,
  this.duration = const Duration(milliseconds: 200),
})  : assert(number >= 0, 'Number must be non-negative'),
      assert(length == null || length > 0, 'Length must be positive number'),
      super(key: key);