copyWith method

  1. @override
StoryAreaTypeSuggestedReaction copyWith({
  1. ReactionType? reactionType,
  2. int? totalCount,
  3. bool? isDark,
  4. bool? isFlipped,
})
override

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

Implementation

@override
StoryAreaTypeSuggestedReaction copyWith({
  ReactionType? reactionType,
  int? totalCount,
  bool? isDark,
  bool? isFlipped,
}) => StoryAreaTypeSuggestedReaction(
  reactionType: reactionType ?? this.reactionType,
  totalCount: totalCount ?? this.totalCount,
  isDark: isDark ?? this.isDark,
  isFlipped: isFlipped ?? this.isFlipped,
);