onError abstract method

void onError(
  1. String message,
  2. Map<String, dynamic> dataMap
)

失败回调 message 异常消息 dataMap dio响应数据

Implementation

void onError(String message, Map<String, dynamic> dataMap);