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
StoryInfo copyWith({
int? storyId,
int? date,
bool? isForCloseFriends,
}) =>
StoryInfo(
storyId: storyId ?? this.storyId,
date: date ?? this.date,
isForCloseFriends: isForCloseFriends ?? this.isForCloseFriends,
);