TaskResult.retryLater constructor

const TaskResult.retryLater(
  1. Duration delay, {
  2. Map<String, dynamic>? data,
})

Task needs to retry after a custom delay.

Ignores the RetryPolicy and reschedules the task after delay. Useful for rate-limiting or server-side backoff instructions.

Implementation

const factory TaskResult.retryLater(
  Duration delay, {
  Map<String, dynamic>? data,
}) = TaskRetryLater;