MagicService constructor
MagicService({
- required IReownCore core,
- required PairingMetadata metadata,
- 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);
}
}