OptimisedAnimatedDigit constructor
OptimisedAnimatedDigit({})
Implementation
OptimisedAnimatedDigit({
super.key,
required this.valueNotifier,
Color? negativeColor,
Color? positiveColor,
Color? neutralColor,
required this.textStyle,
required this.milliseconds,
this.decimal,
this.digitsSeparator,
}) {
assert(milliseconds >= 100,
"milliseconds should be greater or equal to 100 for smooth animation");
_negativeColor = negativeColor ?? Colors.black;
_positiveColor = positiveColor ?? Colors.black;
_neutralColor = neutralColor ?? Colors.black;
}