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