maxIndex method Null safety

  1. @Deprecated('The [maxIndex] extension method will be removed.')
int maxIndex(
  1. String term
)
@Deprecated('The [maxIndex] extension method will be removed.')

Returns the highest Token.index where Token.term == term.

Implementation

@Deprecated('The [maxIndex] extension method will be removed.')
int maxIndex(String term) => byTerm(term).last.index;