copyWith method
StoryInteraction
copyWith({
- MessageSender? actorId,
- int? interactionDate,
- BlockList? blockList()?,
- 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,
);