UniversalDigitCounter constructor
const
UniversalDigitCounter({
- Key? key,
- required num value,
- TextStyle? style,
- DigitAnimationType type = DigitAnimationType.simple,
- Duration duration = const Duration(milliseconds: 600),
- Curve curve = Curves.easeInOut,
- int fractionDigits = 0,
- bool enableMinIntegerDigits = true,
- bool autoScale = true,
- BoxDecoration? boxDecoration,
- String? prefix,
- String? suffix,
- EdgeInsetsGeometry? padding,
- bool enableSeparator = false,
- String separateSymbol = ',',
- int separateLength = 3,
- 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 = '.',
});