TextElementsExtension extension

Extensions on a collection of TextElement.

on

Methods

containsMatcherType<T extends TextMatcher>({int? matcherIndex}) bool
Whether the iterable contains one or more TextElements that have type T as matcherType.
reassignOffsets({int startingOffset = 0}) Iterable<TextElement>
Corrects the offsets of TextElements and returns a new lazy Iterable with the elements.
whereMatcherType<T extends TextMatcher>({int? matcherIndex}) Iterable<TextElement>
Returns a new lazy Iterable with all TextElements that have type T as matcherType.