firstPosition method

int firstPosition(
  1. String term
)

Returns the lowest Token.termPosition where Token.term == term.

Implementation

int firstPosition(String term) => byTerm(term).first.termPosition;