init method

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

Implementation

@override
Future<void> init() async {
  try {
    if (enableAnalytics == null) {
      _isEnabled = await fetchAnalyticsConfig();
    } else {
      _isEnabled = enableAnalytics!;
    }
    _bundleId = await WalletConnectUtils.getPackageName();
    loggerService.instance.d('[$runtimeType] enabled: $_isEnabled');
  } catch (e, s) {
    loggerService.instance.d(
      '[$runtimeType] init error',
      error: e,
      stackTrace: s,
    );
  }
}