WebViewEthInjected constructor

WebViewEthInjected(
  1. PolkawalletApi api,
  2. String initialUrl,
  3. KeyringEVM keyringEVM, {
  4. required Keyring keyring,
  5. required Future<bool> onSwitchEvmChain(
    1. String
    ),
  6. required Future<Map> onEvmRpcCall(
    1. Map
    ),
  7. required Future<void> onAccountEmpty(
    1. String
    ),
  8. dynamic onPageFinished(
    1. String
    )?,
  9. Function? onExtensionReady,
  10. dynamic onWebViewCreated(
    1. WebViewController
    )?,
  11. Future<WCCallRequestResult?> onSignRequestEVM(
    1. Map
    )?,
  12. Future<ExtensionSignResult?> onSignRequest(
    1. SignAsExtensionParam
    )?,
  13. Future<List<KeyPairData>> onConnectRequest(
    1. DAppConnectParam, {
    2. bool isEvm,
    })?,
  14. List<KeyPairData> checkAuth(
    1. String, {
    2. bool isEvm,
    })?,
})

Implementation

WebViewEthInjected(
  this.api,
  this.initialUrl,
  this.keyringEVM, {
  required this.keyring,
  required this.onSwitchEvmChain,
  required this.onEvmRpcCall,
  required this.onAccountEmpty,
  this.onPageFinished,
  this.onExtensionReady,
  this.onWebViewCreated,
  this.onSignRequestEVM,
  this.onSignRequest,
  this.onConnectRequest,
  this.checkAuth,
});