NumberTicker constructor

NumberTicker({
  1. Key? key,
  2. Color backgroundColor = Colors.transparent,
  3. Curve curve = Curves.ease,
  4. required NumberTickerController controller,
  5. TextStyle textStyle = const TextStyle(color: Colors.black, fontSize: 12),
  6. required double initialNumber,
  7. Duration duration = const Duration(milliseconds: 300),
  8. int fractionDigits = 0,
})

Implementation

NumberTicker(
    {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;
}