copyWith method

  1. @override
ChatEventMemberPromoted copyWith({
  1. int? userId,
  2. ChatMemberStatus? oldStatus,
  3. ChatMemberStatus? newStatus,
})
override

Implementation

@override
ChatEventMemberPromoted copyWith({
  int? userId,
  ChatMemberStatus? oldStatus,
  ChatMemberStatus? newStatus,
}) => ChatEventMemberPromoted(
  userId: userId ?? this.userId,
  oldStatus: oldStatus ?? this.oldStatus,
  newStatus: newStatus ?? this.newStatus,
);