createLiveByIdBloc method

  1. @override
FirestoreLiveByIdBloc<T> createLiveByIdBloc(
  1. String id
)

Creates a loader for a single object by id that is self-updated when the data changes at the origin.

Implementation

@override
FirestoreLiveByIdBloc<T> createLiveByIdBloc(String id) {
  return FirestoreLiveByIdBloc(
    collectionReference: getCollection().withConverter(
      fromFirestore: fromFirestoreBase,
      toFirestore: toFirestore,
    ),
    id: id,
  );
}