liveModelByFilterBloc method
Returns a loader for a single object by filter
that is self-updated
when the data changes at the origin.
The loader is cached for future calls with the same ID.
Implementation
ModelByFilterBloc<I, T> liveModelByFilterBloc(F filter) {
final existing = _liveModelByFilterBlocs[filter];
if (existing != null) {
return existing;
}
final result = createLiveModelByFilterBloc(filter);
_liveModelByFilterBlocs[filter] = result;
return result;
}