onDownloadError abstract method

Future<bool> onDownloadError(
  1. Attachment attachment,
  2. Object exception,
  3. StackTrace stackTrace
)

Determines whether the provided attachment download operation should be retried.

attachment The attachment involved in the failed download operation. exception The exception that caused the download failure. stackTrace The StackTrace when the exception was caught.

Returns true if the download operation should be retried, false otherwise.

Implementation

Future<bool> onDownloadError(
  Attachment attachment,
  Object exception,
  StackTrace stackTrace,
);