AnimatedCounter constructor

const AnimatedCounter({
  1. Key? key,
  2. required num value,
  3. Duration duration = const Duration(milliseconds: 1200),
  4. Curve curve = Curves.easeOutCubic,
  5. TextStyle? style,
  6. String prefix = '',
  7. String suffix = '',
  8. int decimalPlaces = 0,
  9. String formatter(
    1. num
    )?,
})

Implementation

const AnimatedCounter({
  super.key,
  required this.value,
  this.duration = const Duration(milliseconds: 1200),
  this.curve = Curves.easeOutCubic,
  this.style,
  this.prefix = '',
  this.suffix = '',
  this.decimalPlaces = 0,
  this.formatter,
});