terminate method
Terminates this instance: every later call on it, and on the references and queries made from it, fails with FirestoreErrorCode.failedPrecondition. The requests on the wire are not interrupted: the returned future completes when they are done and the connection is closed. A transaction in progress is not waited for: its next read or its commit fails (see runTransaction).
FirebaseFirestore.instanceFor returns a new instance afterwards. Calling this again does nothing.
Implementation
Future<void> terminate() {
return _termination ??= _terminate();
}