copyWith method

UserData copyWith({
  1. String? nickname,
  2. String? avatarUrl,
})

Implementation

UserData copyWith({String? nickname, String? avatarUrl}) {
  return UserData(
    nickname: nickname ?? this.nickname,
    avatarUrl: avatarUrl ?? this.avatarUrl,
  );
}