createInPath method
Creates a new document in the specified collection path and sets the ref to the newly created document.
Implementation
Future<void> createInPath(String d) async {
if (ref != null) {
throw 'Document reference is null';
}
create(firestore.collection(d));
}