updateProfile method

Future<Either<ApiError, Profile>> updateProfile(
  1. Map<String, dynamic> data
)

Implementation

Future<Either<ApiError, Profile>> updateProfile(Map<String, dynamic> data) {
  cache.get<Profile>("profile").markAsShouldReload();
  return patch("$_profileRoutesPrefix/me", (json) => Profile.fromJson(json),
      requestBody: data);
}