copyWith method

StoryInteraction copyWith({
  1. MessageSender? actorId,
  2. int? interactionDate,
  3. BlockList? blockList()?,
  4. StoryInteractionType? type,
})

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

Implementation

StoryInteraction copyWith({
  MessageSender? actorId,
  int? interactionDate,
  BlockList? Function()? blockList,
  StoryInteractionType? type,
}) =>
    StoryInteraction(
      actorId: actorId ?? this.actorId,
      interactionDate: interactionDate ?? this.interactionDate,
      blockList: blockList != null ? blockList() : this.blockList,
      type: type ?? this.type,
    );