MagicService constructor

MagicService({
  1. required IReownCore core,
  2. required PairingMetadata metadata,
  3. required FeaturesConfig featuresConfig,
})

Implementation

MagicService({
  required IReownCore core,
  required PairingMetadata metadata,
  required FeaturesConfig featuresConfig,
})  : _core = core,
      _metadata = metadata,
      _features = featuresConfig {
  isEmailEnabled.value = _features.email;
  isSocialEnabled.value = _features.socials.isNotEmpty;
  //
  if (isEmailEnabled.value || isSocialEnabled.value) {
    _webViewController = WebViewController();
    _webview = WebViewWidget(controller: _webViewController);
    isReady.addListener(_readyListener);
  }
}