copyWith method

RoomMember copyWith(
  1. {String? nick,
  2. Affiliation? affiliation,
  3. Role? role}
)

Implementation

RoomMember copyWith({
  String? nick,
  Affiliation? affiliation,
  Role? role,
}) {
  return RoomMember(
    nick ?? this.nick,
    affiliation ?? this.affiliation,
    role ?? this.role,
  );
}