copyWith method

SendStory copyWith({
  1. InputStoryContent? content,
  2. FormattedText? caption,
  3. StoryPrivacySettings? privacySettings,
  4. int? activePeriod,
  5. bool? isPinned,
  6. bool? protectContent,
})

Implementation

SendStory copyWith({
  InputStoryContent? content,
  FormattedText? caption,
  StoryPrivacySettings? privacySettings,
  int? activePeriod,
  bool? isPinned,
  bool? protectContent,
}) =>
    SendStory(
      content: content ?? this.content,
      caption: caption ?? this.caption,
      privacySettings: privacySettings ?? this.privacySettings,
      activePeriod: activePeriod ?? this.activePeriod,
      isPinned: isPinned ?? this.isPinned,
      protectContent: protectContent ?? this.protectContent,
    );