initialize method

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

Implementation

@override
Future<void> initialize() async {
  if (functions == null) {
    //await HycopFactory.initAll();
    FirebaseApp app = await Firebase.initializeApp(
        name: "functions",
        options: FirebaseOptions(
            apiKey: myConfig!.serverConfig.dbConnInfo.apiKey,
            appId: myConfig!.serverConfig.dbConnInfo.appId,
            storageBucket: myConfig!.serverConfig.dbConnInfo.storageBucket,
            messagingSenderId: myConfig!.serverConfig.dbConnInfo.messagingSenderId,
            projectId: myConfig!.serverConfig.dbConnInfo.projectId));

    functions = FirebaseFunctions.instanceFor(app: app);
  }
}