Show pageOld revisionsBacklinksBack to top This page is read only. You can view the source, but not change it. Ask your administrator if you think this is wrong. # Dio <code> try { var dio = _getDio(); Response response = await dio.post(url, data: data); return response.data; } catch (e) { debugPrint('[API Error] fetchResponse : $url : $e'); if (e is DioError) { JsonEncoder encoder = new JsonEncoder.withIndent(' '); Map decodeMap = json.decode(e.response.toString()); String prettyprint = encoder.convert(decodeMap); debugPrint(prettyprint); } return null; } </code> open/dio.txt Last modified: 2024/10/05 06:15by 127.0.0.1