FirebaseClient constructor

FirebaseClient(
  1. String? credential, {
  2. Client? client,
})

Creates a new FirebaseClient with credential and optional client.

For credential you can either use Firebase app's secret or an authentication token. See: firebase.google.com/docs/reference/rest/database/user-auth.

Implementation

FirebaseClient(this.credential, {Client? client})
    : _client = client ?? Client();