MagicService constructor

MagicService({
  1. required IWeb3App web3app,
  2. bool enabled = false,
})

Implementation

MagicService({required IWeb3App web3app, bool enabled = false})
    : _web3app = web3app {
  isEnabled.value = enabled;
  if (isEnabled.value) {
    _webViewController = WebViewController();
    _webview = WebViewWidget(controller: _webViewController);
    isReady.addListener(_readyListener);
  }
}