Credential.fromServiceAccountParams constructor
Credential.fromServiceAccountParams({})
Log in to firebase from a service account file parameters.
Implementation
factory Credential.fromServiceAccountParams({
required String clientId,
required String privateKey,
required String email,
}) {
final serviceAccountCredentials = auth.ServiceAccountCredentials(
email,
ClientId(clientId),
privateKey,
);
return Credential._(serviceAccountCredentials);
}