RestApi constructor

const RestApi(
  1. Client client,
  2. String apiKey, {
  3. EmulatorConfig? emulator,
})

Create a new api instance

The api is created with client and apiKey to initialize the equivalent members. They are used to access the firebase servers. If emulator is specified, requests will be made against the Firebase auth emulator instead of the production endpoints using the provided EmulatorConfig.

Implementation

const RestApi(this.client, this.apiKey, {this.emulator});