init method

  1. @override
Future<void> init()
override

Implementation

@override
Future<void> init() async {
  _client = await clientViaApplicationDefaultCredentials(
    scopes: [
      FirestoreApi.cloudPlatformScope,
      FirestoreApi.datastoreScope,
    ],
  );

  api = FirestoreApi(_client);
}