AnimatedNumber constructor

const AnimatedNumber({
  1. Key? key,
  2. required int startNumber,
  3. required int endNumber,
  4. Duration startDelay = Duration.zero,
  5. TextStyle? textStyle,
  6. Duration duration = const Duration(seconds: 1),
})

Implementation

const AnimatedNumber({
  Key? key,
  required this.startNumber,
  required this.endNumber,
  this.startDelay = Duration.zero,
  this.textStyle,
  this.duration = const Duration(seconds: 1),
}) : super(key: key);