copyWith method

SetChatPinnedStories copyWith({
  1. int? chatId,
  2. List<int>? storyIds,
})

Returns a copy with the given fields replaced. For a nullable field pass a function, e.g. field: () => null to clear it.

Implementation

SetChatPinnedStories copyWith({int? chatId, List<int>? storyIds}) =>
    SetChatPinnedStories(
      chatId: chatId ?? this.chatId,
      storyIds: storyIds ?? this.storyIds,
    );