useDatabaseEmulator method

void useDatabaseEmulator(
  1. String host,
  2. int port
)

Changes this instance to point to a FirebaseDatabase emulator running locally.

Set the host of the local emulator, such as "localhost" Set the port of the local emulator, such as "9000" (default is 9000)

Note: Must be called immediately, prior to accessing FirebaseFirestore methods. Do not use with production credentials as emulator traffic is not encrypted.

Implementation

void useDatabaseEmulator(String host, int port) {
  throw UnimplementedError('useDatabaseEmulator() not implemented');
}