isCancel static method

bool isCancel(
  1. Object error
)

Checks if an exception is a cancellation exception

Implementation

static bool isCancel(Object error) {
  return error is DownloadCancelledException;
}