NumberTickerWidget constructor
NumberTickerWidget({
- Key? key,
- Color backgroundColor = Colors.transparent,
- Curve curve = Curves.ease,
- required NumberTickerController controller,
- TextStyle textStyle = const TextStyle(color: Colors.black, fontSize: 12),
- required double initialNumber,
- Duration duration = const Duration(milliseconds: 300),
- int fractionDigits = 0,
Implementation
NumberTickerWidget(
{Key? key,
this.backgroundColor = Colors.transparent,
this.curve = Curves.ease,
required this.controller,
this.textStyle = const TextStyle(color: Colors.black, fontSize: 12),
required this.initialNumber,
this.duration = const Duration(milliseconds: 300),
this.fractionDigits = 0})
: super(key: key) {
controller.number = initialNumber;
}