frozenModelByFilterBloc method

ModelByFilterBloc<String, T> frozenModelByFilterBloc(
  1. F filter
)
inherited

Returns a loader for a single object by filter that is not self-updated when the data changes at the origin.

The loader is cached for future calls with the same ID.

Implementation

ModelByFilterBloc<I, T> frozenModelByFilterBloc(F filter) {
  final existing = _frozenModelByFilterBlocs[filter];
  if (existing != null) {
    return existing;
  }

  final result = createFrozenModelByFilterBloc(filter);
  _frozenModelByFilterBlocs[filter] = result;
  return result;
}