TaskProcessCancelled constructor

const TaskProcessCancelled({
  1. required Envelope envelope,
  2. required TaskCancellationReason reason,
  3. Object? error,
})

Creates an outcome for a cancelled or expired task.

Implementation

const TaskProcessCancelled({
  required super.envelope,
  required this.reason,
  this.error,
});