Skip to content

Instantly share code, notes, and snippets.

View geekswamp's full-sized avatar
:octocat:
Welcome to my profile!

Ahmad Rifa'i geekswamp

:octocat:
Welcome to my profile!
  • Jakarta, Indonesia
  • 11:05 (UTC +07:00)
View GitHub Profile
class Api{
static Future<dynamic> post(String path,
{dynamic body, Map<String, dynamic>? params}) async {
try {
final resp = await dio.post<Map<String, dynamic>>(path,
data: body, queryParameters: params);
return resp.data;
} catch (e) {
ApiResources.errorHandlerFunc(e);