useFirestoreEmulator method
Points this instance at the Firestore emulator on host and port until its first request, like the
settings setter: the same as settings.withEmulator(host, port), with sslEnabled off by default.
Implementation
void useFirestoreEmulator(String host, int port, {bool sslEnabled = false}) {
_checkNotStarted('useFirestoreEmulator');
final Settings emulated = _settings.withEmulator(host, port);
_settings = sslEnabled
? Settings(
host: emulated.host,
port: emulated.port,
sslEnabled: true,
grpcFlowControlWindow: emulated.grpcFlowControlWindow,
)
: emulated;
}