configureEmulator static method

Future<void> configureEmulator({
  1. int firestorePort = 8080,
  2. int storagePort = 9099,
  3. bool persistenceEnabled = false,
  4. bool sslEnabled = false,
})

Set emulator

Implementation

static Future<void> configureEmulator({
  int firestorePort = 8080,
  int storagePort = 9099,
  bool persistenceEnabled = false,
  bool sslEnabled = false,
}) async {
  FirebaseFirestore.instance.settings = getEmulatorSettings(
    port: firestorePort,
    persistenceEnabled: persistenceEnabled,
    sslEnabled: sslEnabled,
  );
  await configureStorageEmulator(port: storagePort);
}