onDocumentDeleted method

JSFunction onDocumentDeleted(
  1. JSAny documentOrOpts,
  2. JSFunction handler
)

Event handler that triggers when a document is deleted in Firestore.

@param documentOrOpts - Options or a string document path. @param handler - Event handler which is run every time a Firestore delete occurs.

Implementation

external JSFunction onDocumentDeleted(
  JSAny documentOrOpts,
  // (FirestoreAuthEvent<QueryDocumentSnapshot> event) => FutureOr<void>
  JSFunction handler,
);