StartupCrashWatchdog constructor

StartupCrashWatchdog({
  1. WatchdogStorage? storage,
  2. int maxCrashThreshold = 2,
  3. Duration healthyThresholdDuration = const Duration(seconds: 5),
  4. void onRollbackTriggered(
    1. String faultyPatchId,
    2. String reason
    )?,
})

Implementation

StartupCrashWatchdog({
  WatchdogStorage? storage,
  this.maxCrashThreshold = 2,
  this.healthyThresholdDuration = const Duration(seconds: 5),
  this.onRollbackTriggered,
}) : storage = storage ?? InMemoryWatchdogStorage();