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
@override
TargetChatChosen copyWith({
bool? allowUserChats,
bool? allowBotChats,
bool? allowGroupChats,
bool? allowChannelChats,
}) =>
TargetChatChosen(
allowUserChats: allowUserChats ?? this.allowUserChats,
allowBotChats: allowBotChats ?? this.allowBotChats,
allowGroupChats: allowGroupChats ?? this.allowGroupChats,
allowChannelChats: allowChannelChats ?? this.allowChannelChats,
);