waitForInit method

Future<void> waitForInit()

Sometimes, the Plugin just needs to wait until the

Implementation

Future<void> waitForInit() async {
  if (isInitialized.isCompleted) {
    return;
  }
  LinkFiveLogger.t("Waiting call until LinkFive is finished initialized");
  await isInitialized.future;
  LinkFiveLogger.t("Done waiting. Proceeding now");
}