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
StartLiveStory copyWith({
int? chatId,
StoryPrivacySettings? privacySettings,
bool? protectContent,
bool? isRtmpStream,
bool? enableMessages,
int? paidMessageStarCount,
}) => StartLiveStory(
chatId: chatId ?? this.chatId,
privacySettings: privacySettings ?? this.privacySettings,
protectContent: protectContent ?? this.protectContent,
isRtmpStream: isRtmpStream ?? this.isRtmpStream,
enableMessages: enableMessages ?? this.enableMessages,
paidMessageStarCount: paidMessageStarCount ?? this.paidMessageStarCount,
);