ForegroundTaskOptions constructor

const ForegroundTaskOptions({
  1. int interval = 5000,
  2. bool isOnceEvent = false,
  3. bool autoRunOnBoot = false,
  4. bool allowWakeLock = true,
  5. bool allowWifiLock = false,
})

Constructs an instance of ForegroundTaskOptions.

Implementation

const ForegroundTaskOptions({
  this.interval = 5000,
  this.isOnceEvent = false,
  this.autoRunOnBoot = false,
  this.allowWakeLock = true,
  this.allowWifiLock = false,
});