UniversalDigitCounter constructor

const UniversalDigitCounter({
  1. Key? key,
  2. required num value,
  3. TextStyle? style,
  4. DigitAnimationType type = DigitAnimationType.simple,
  5. Duration duration = const Duration(milliseconds: 600),
  6. Curve curve = Curves.easeInOut,
  7. int fractionDigits = 0,
  8. bool enableMinIntegerDigits = true,
  9. bool autoScale = true,
  10. BoxDecoration? boxDecoration,
  11. String? prefix,
  12. String? suffix,
  13. EdgeInsetsGeometry? padding,
  14. bool enableSeparator = false,
  15. String separateSymbol = ',',
  16. int separateLength = 3,
  17. String decimalSeparator = '.',
})

Implementation

const UniversalDigitCounter({
  super.key,
  required this.value,
  this.style,
  this.type = DigitAnimationType.simple,
  this.duration = const Duration(milliseconds: 600),
  this.curve = Curves.easeInOut,
  this.fractionDigits = 0,
  this.enableMinIntegerDigits = true,
  this.autoScale = true,
  this.boxDecoration,
  this.prefix,
  this.suffix,
  this.padding,
  this.enableSeparator = false,
  this.separateSymbol = ',',
  this.separateLength = 3,
  this.decimalSeparator = '.',
});