Token constructor

const Token(
  1. String term,
  2. int n,
  3. int termPosition, [
  4. String? zone,
])

Instantiates a Token instance:

  • term is the term that will be looked up in the index;
  • termPosition is the zero-based position of the term in an ordered list of all the terms in the source text;
  • zone is the nullable / optional name of the zone the term is in;

Implementation

const Token(this.term, this.n, this.termPosition, [this.zone]);