operator == method

  1. @override
bool operator ==(
  1. Object other
)
override

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;