frozenListBloc method

LazyLoadBloc<T> frozenListBloc(
  1. F filter
)

Creates a lazy loader for the objects matching the filter that is not self-updated when the data changes at the origin.

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

Implementation

LazyLoadBloc<T> frozenListBloc(F filter) {
  final existing = _frozenLazyLoadBlocs[filter];
  if (existing != null) {
    return existing;
  }

  final result = createFrozenListBloc(filter);
  _frozenLazyLoadBlocs[filter] = result;
  return result;
}