onQueryChange method

void onQueryChange(
  1. String cacheKey,
  2. QueryState currentState,
  3. QueryState nextState
)

Called on every state change for a query or mutation controller.

Provides both currentState and nextState — equivalent to BlocObserver.onChange but typed to QueryState and keyed by cacheKey.

Implementation

void onQueryChange(
  String cacheKey,
  QueryState<dynamic> currentState,
  QueryState<dynamic> nextState,
) {}