updateProfile method

Future<Null> updateProfile(
  1. Map<String, String> profile, {
  2. bool fetch = true,
})

Implementation

Future<Null> updateProfile(Map<String, String> profile,
    {bool fetch = true}) async {
  await api.authReq("User/@/Profile", method: "PATCH", body: profile);
  if (fetch) {
    await fetchLogin();
  }
}