TimerWidget constructor

TimerWidget({
  1. required void function(),
  2. required Widget child,
  3. required Duration duration,
  4. int? initialDelay,
  5. bool enableWidgetBindingObserver = false,
  6. bool enableTimer = true,
  7. Key? key,
})

Implementation

TimerWidget({
  required this.function,
  required this.child,
  required this.duration,
  this.initialDelay,
  this.enableWidgetBindingObserver = false,
  this.enableTimer = true,
  Key? key,
}) : super(key: key);