TaskConstraints constructor

const TaskConstraints({
  1. NetworkConstraint? network,
  2. bool batteryNotLow = false,
  3. bool requiresCharging = false,
  4. bool deviceIdle = false,
})

Creates a TaskConstraints instance.

Implementation

const TaskConstraints({
  this.network,
  this.batteryNotLow = false,
  this.requiresCharging = false,
  this.deviceIdle = false,
});