isCancel static method

bool isCancel(
  1. DioException error
)

Whether the error is thrown by cancel.

Implementation

static bool isCancel(DioException error) =>
    error.type == DioExceptionType.cancel;