copyWith method

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

Implementation

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