WorkIntent constructor

const WorkIntent({
  1. required String identifier,
  2. Iterable<String>? tags,
  3. Map<String, dynamic>? input,
  4. Duration? initialDelay,
  5. WorkConstraints? constraints,
  6. bool? isProcessingTask,
  7. Duration? repeatInterval,
  8. Duration? flexInterval,
})

Instantiates a WorkIntent with an identifier.

Optional properties include tags, input data and an initialDelay.

Implementation

const WorkIntent({
  required this.identifier,
  this.tags,
  this.input,
  this.initialDelay,
  this.constraints,
  this.isProcessingTask,
  this.repeatInterval,
  this.flexInterval,
});