collectionRef<T extends StoreEntity> method
- {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(),
);