copyWith method

UserBean copyWith({
  1. String? accountId,
  2. bool? active,
  3. UserBeanAvatarUrls? avatarUrls,
  4. String? displayName,
  5. String? key,
  6. String? name,
  7. String? self,
})

Implementation

UserBean copyWith(
    {String? accountId,
    bool? active,
    UserBeanAvatarUrls? avatarUrls,
    String? displayName,
    String? key,
    String? name,
    String? self}) {
  return UserBean(
    accountId: accountId ?? this.accountId,
    active: active ?? this.active,
    avatarUrls: avatarUrls ?? this.avatarUrls,
    displayName: displayName ?? this.displayName,
    key: key ?? this.key,
    name: name ?? this.name,
    self: self ?? this.self,
  );
}