withConverter method
Applies a custom data converter to this CollectionReference, allowing you
to use your own custom model objects with Firestore. When you call add()
on the returned CollectionReference instance, the provided converter will
convert between Firestore data of type NewDbModelType
and your custom
type NewAppModelType
.
@param converter Converts objects to and from Firestore. Passing in
null
removes the current converter.
@return A CollectionReference that uses the provided converter.
Implementation
external CollectionReference withConverter(FirestoreDataConverter? converter);