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
asmatcherType
. -
reassignOffsets(
{int startingOffset = 0}) → Iterable< TextElement> -
Corrects the offsets of
TextElement
s and returns a new lazy Iterable with the elements. -
whereMatcherType<
T extends TextMatcher> ({int? matcherIndex}) → Iterable< TextElement> -
Returns a new lazy Iterable with all
TextElement
s that have typeT
asmatcherType
.