CountdownTimerController constructor

CountdownTimerController({
  1. required int endTime,
  2. VoidCallback? onEnd,
  3. TickerProvider? vsync,
})

Implementation

CountdownTimerController(
    {required int endTime, this.onEnd, TickerProvider? vsync})
    : this._endTime = endTime {
  if(vsync != null) {
    this._animationController = AnimationController(vsync: vsync, duration: Duration(seconds: 1));
  }
}