firstPosition property

  1. @override
int firstPosition
override

The first position of this entity, as an zero-based offset in the file it was read from.

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

Implementation

@override
int get firstPosition => first!.span.start.offset;