Whether the error is thrown by cancel.
error
static bool isCancel(DioException error) => error.type == DioExceptionType.cancel;