NiceAnimatedNumber constructor

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

Implementation

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