stateEqualityCheck method

  1. @override
  2. @protected
bool stateEqualityCheck(
  1. BaseAsyncState<S> curr,
  2. BaseAsyncState<S> next
)

Custom equality check for async states.

Compares the data fields of two async states to determine if they are equal. Override this method to provide custom equality logic.

curr is the current state. next is the new state.

Returns true if the states are considered equal, false otherwise.

Implementation

@override
@protected
bool stateEqualityCheck(BaseAsyncState<S> curr, BaseAsyncState<S> next) =>
    curr == next;