lastPosition property

  1. @override
int lastPosition
override

The (exclusive) last index of this entity in the source.

Instead of returning null, this getter may throw for entities where hasSpan is false.

Implementation

@override
int get lastPosition => last!.span.end.offset;