switchAccount static method

Future<Map<String, dynamic>> switchAccount(
  1. SwitchAccountParameters switchAccountParameters, {
  2. String configKey = 'default',
})

Implementation

static Future<Map<String, dynamic>> switchAccount(
    SwitchAccountParameters switchAccountParameters, {
      String configKey = 'default',
    }) =>
    _guardFuture(() async {
      _logAction('switchAccount');
      final result = await window.wagmiCore
          .switchAccount(
        configKey.toJS,
        switchAccountParameters.toJS,
      )
          .toDart;
      return result.toMap();
    });