initWithRefUseGlobalFailureAndGetOrUpdateState method

  1. @protected
void initWithRefUseGlobalFailureAndGetOrUpdateState(
  1. Ref<Object?> ref,
  2. bool useGlobalFailure,
  3. PaginatedState<Entity> getOrUpdateState({
    1. PaginatedState<Entity>? newState,
    })
)
inherited

Implementation

@protected
void initWithRefUseGlobalFailureAndGetOrUpdateState(
  Ref ref,
  bool useGlobalFailure,
  PaginatedState<Entity> Function({PaginatedState<Entity>? newState})
      getOrUpdateState,
) {
  if (_initialized) return;
  _initialized = true;
  super.initWithRef(ref);
  _ref = ref;
  _useGlobalFailure = useGlobalFailure;
  _getOrUpdateState = getOrUpdateState;
  _ref.onDispose(() => _listStreamSubscription?.cancel());
}