copyWith method
Returns a copy with the given fields replaced. For a nullable
field pass a function, e.g. field: () => null to clear it.
Implementation
SetPinnedChats copyWith({
ChatList? chatList,
List<int>? chatIds,
}) =>
SetPinnedChats(
chatList: chatList ?? this.chatList,
chatIds: chatIds ?? this.chatIds,
);