collectionRef<T extends StoreEntity> method

CollectionRef<T, Doc<T>> collectionRef <T extends StoreEntity>(
  1. {String parent}
)

Implementation

CollectionRef<T, Doc<T>> collectionRef<T extends StoreEntity>({String parent}) => CollectionRef<T, Doc<T>>(
      firestore.collection(parent == null ? getCollectionId<T>() : '$parent/${getCollectionId<T>()}'),
      decoder: (snapshot) => _decode<T>(snapshot),
      encoder: (entity) => entity.encode(),
    );