operator == method
Compares two Change objects for equality.
Parameters:
other: The object to compare with
Returns: true if both Change objects have the same current and next states
Two Change objects are considered equal if they have the same currentState and nextState values.
Implementation
@override
bool operator ==(Object other) =>
identical(this, other) ||
other is Change<State> &&
runtimeType == other.runtimeType &&
currentState == other.currentState &&
nextState == other.nextState;