listBloc method

LazyLoadBloc<T> listBloc(
  1. F filter
)

Returns a lazy loader for the objects matching the filter. Returns a self-updated bloc if possible, or a frozen one otherwise.

Implementation

LazyLoadBloc<T> listBloc(F filter) {
  try {
    return liveListBloc(filter);
    // ignore: avoid_catching_errors
  } on UnimplementedError {
    return frozenListBloc(filter);
  }
}