removeAsset method

void removeAsset(
  1. StoryElement asset
)

Implementation

void removeAsset(StoryElement asset) {
  value = <StoryElement>[...value]
    ..removeWhere((StoryElement element) => element.id == asset.id);
}