replaceStory method

  1. @override
ConnectorElement replaceStory(
  1. TextStory story
)
override

Implementation

@override
ConnectorElement replaceStory(TextStory story) => owner.copyWith(
  labels: [
    for (final sibling in owner.labels)
      sibling.id == label.id ? sibling.copyWith(story: story) : sibling,
  ],
);