request static method
Implementation
static request(url, onSuccess, onError, {Map<String, dynamic>? dict}) {
DioManager().request<dynamic>(RequestType.POST, url, params: dict ?? {}, onSuccess: (data) {
// onSuccess
onSuccess(data);
}, onError: (error) {
// when called , already show toast, then do another things
if (onError != null) {
onError(error.message);
}
});
}