updateProfile method

Future<void> updateProfile(
  1. Map<String, String> properties
)

User 클래스에서 제공되고 있는 사용자의 부가정보를 신규저장 및 수정

저장 가능한 키 이름은 카카오디벨로퍼스 > 카카오 로그인 > 사용자 프로퍼티 메뉴에서 확인 앱 연결 시 기본 저장되는 nickname, profile_image, thumbnail_image 값도 덮어쓰기 가능하며 새로운 컬럼을 추가하면 해당 키 이름으로 정보 저장 가능

Implementation

Future<void> updateProfile(Map<String, String> properties) {
  return ApiFactory.handleApiError(() async {
    await _dio.post(Constants.v1UpdateProfilePath,
        data: {Constants.properties: jsonEncode(properties)});
  });
}