isCancel static method

bool isCancel(
  1. DioError e
)

Whether is throw by cancel

Implementation

static bool isCancel(DioError e) {
  return e.type == DioErrorType.cancel;
}