operator == method
Compares whether:
other
isToken
;- field ==
other
.field; - term ==
other
.term; and - termPosition ==
other
.termPosition.
Implementation
@override
bool operator ==(Object other) =>
other is Token &&
term == other.term &&
field == other.field &&
termPosition == other.termPosition;