countdown_widget library
Classes
- CountDownController
- Controller of CountDownWidget, if you want to pause,resume,restart timer, you need use controller, get a controller by CountDownWidget.onControllerReady
- CountDownWidget
- builder is function callback return Widget by durationRemain, it will be called when durationRemain Changed
Typedefs
- BuildWidgetByDuration = Widget Function(BuildContext context, Duration duration)
- Widget builder when duration changed
- OnControllerReady = void Function(CountDownController controller)
- callback this return CountDownController when it ready to use