error static method

void error(
  1. DioException err
)

Implementation

static void error(DioException err) {
  debugPrint("$yellow🔴 ERROR → ${err.requestOptions.path}$reset");
  debugPrint("$yellow 🔸 Message: ${err.message}$reset");
  debugPrint("$yellow 🔸 Response: ${err.response?.data}$reset");
}