Connector constructor

Connector({
  1. String? icon,
  2. String? id,
  3. String? name,
  4. String? type,
  5. String? uid,
  6. bool? supportsSimulation,
  7. dynamic connect({
    1. int? chainId,
    2. bool? isReconnecting,
    })?,
  8. void disconnect()?,
  9. dynamic emitter,
  10. dynamic getAccounts()?,
  11. int getChainId()?,
  12. dynamic getProvider()?,
  13. bool isAuthorized()?,
  14. dynamic onAccountsChanged({
    1. List accounts,
    })?,
  15. dynamic onChainChanged({
    1. int? chain,
    })?,
  16. dynamic onConnect({
    1. dynamic connectionInfo,
    })?,
  17. dynamic onDisconnect({
    1. dynamic error,
    })?,
  18. dynamic setup()?,
  19. dynamic switchChain({
    1. dynamic addEthereumChainParameter,
    2. int? chainId,
    })?,
})

Implementation

Connector({
  this.icon,
  this.id,
  this.name,
  this.type,
  this.uid,
  this.supportsSimulation,
  this.connect,
  this.disconnect,
  this.emitter,
  this.getAccounts,
  this.getChainId,
  this.getProvider,
  this.isAuthorized,
  this.onAccountsChanged,
  this.onChainChanged,
  this.onConnect,
  this.onDisconnect,
  this.setup,
  this.switchChain,
});