copyWith method
ChatEventMemberPromoted
copyWith({
- int? userId,
- ChatMemberStatus? oldStatus,
- ChatMemberStatus? newStatus,
override
Returns a copy with the given fields replaced. For a nullable
field pass a function, e.g. field: () => null to clear it.
Implementation
@override
ChatEventMemberPromoted copyWith({
int? userId,
ChatMemberStatus? oldStatus,
ChatMemberStatus? newStatus,
}) =>
ChatEventMemberPromoted(
userId: userId ?? this.userId,
oldStatus: oldStatus ?? this.oldStatus,
newStatus: newStatus ?? this.newStatus,
);