post method
Implementation
Future<Result> post(String path, {Map<String, dynamic>? arguments}) async {
try {
var response = await _dio.post<Map>(path, data: arguments);
var res = Result.fromJson(response.data as Map<String, dynamic>);
return res;
} on DioError catch (e) {
if (e.response?.statusCode == 401) {
FlutterCanary.instance.user.value = null;
} else {
logger.e(e);
}
return Result(1000, e.message);
}
}