NiceTimeoutFeedback constructor

const NiceTimeoutFeedback({
  1. Key? key,
  2. required int timeoutSeconds,
  3. required String message,
  4. VoidCallback? onTimeout,
  5. VoidCallback? onAbort,
  6. void onExtend(
    1. int addedSeconds
    )?,
  7. int extendSeconds = 30,
  8. int warningThresholdSeconds = 10,
  9. Color? backgroundColor,
  10. bool autoStart = true,
})

Implementation

const NiceTimeoutFeedback({
  super.key,
  required this.timeoutSeconds,
  required this.message,
  this.onTimeout,
  this.onAbort,
  this.onExtend,
  this.extendSeconds = 30,
  this.warningThresholdSeconds = 10,
  this.backgroundColor,
  this.autoStart = true,
});