onDocumentCreated method
Event handler that triggers when a document is created in Firestore.
@param documentOrOpts - Options or a string document path. @param handler - Event handler which is run every time a Firestore create occurs.
Implementation
external JSFunction onDocumentCreated(
JSAny documentOrOpts,
// (FirestoreEvent<DocumentSnapshot> event) => FutureOr<void>
JSFunction handler,
);