allTerms property

List<String> get allTerms

Returns a list of all the terms from the collection of Tokens, in the same order as they occur in the text.

Implementation

List<String> get allTerms {
  final allTerms = List<Token>.from(this);
  allTerms.sort(((a, b) => a.termPosition.compareTo(b.termPosition)));
  return allTerms.map((e) => e.term).toList();
}