visibleText method
Implementation
ResolvedTextStory visibleText(ResolvedTextStory text) =>
excludedBlockIds.isEmpty
? text
: ResolvedTextStory(
storyId: text.storyId,
revisionKey: text.revisionKey,
clipBounds: text.clipBounds,
lines: text.lines
.where((line) => !excludedBlockIds.contains(line.blockId))
.toList(),
contentHeight: text.contentHeight,
overflowHeight: text.overflowHeight,
);