QudsAnimatedCounter constructor
const
QudsAnimatedCounter(})
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);