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
GetChatPinnedStories copyWith({
int? chatId,
int? fromStoryId,
int? limit,
}) =>
GetChatPinnedStories(
chatId: chatId ?? this.chatId,
fromStoryId: fromStoryId ?? this.fromStoryId,
limit: limit ?? this.limit,
);