SwitchEthereumChain constructor

SwitchEthereumChain({
  1. required String chainId,
})

Implementation

SwitchEthereumChain({
  required String chainId,
}) : super(
        method: 'wallet_switchEthereumChain',
        paramsJson: jsonEncode({
          'chainId': chainId,
        }),
      );