handleLoad method

Future<void> handleLoad()

Implementation

Future<void> handleLoad() async {
  try {
    final everId = await PluginMappintelligence.getEverID();
    final injectEverIdScript =
        "window.webtrekkApplicationEverId = '$everId'; true;";
    await controller.runJavaScript(_runOnce + injectEverIdScript);
    onLoad?.call();
  } catch (error, stack) {
    print('Error: $error');
    PluginMappintelligence.trackExceptionWithNameAndMessage(
      error.runtimeType.toString(),
      stack.toString(),
    );
  }
}