copyWith method

StoryInfo copyWith({
  1. int? storyId,
  2. int? date,
  3. bool? isForCloseFriends,
})

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,
    );