parseWalletType function
Implementation
WalletType parseWalletType(String? value) {
switch (value) {
case 'authCore':
return WalletType.authCore;
case 'metaMask':
return WalletType.metaMask;
case 'rainbow':
return WalletType.rainbow;
case 'trust':
return WalletType.trust;
case 'imToken':
return WalletType.imToken;
case 'bitget':
return WalletType.bitget;
case 'walletConnect':
return WalletType.walletConnect;
case 'phantom':
return WalletType.phantom;
case 'okx':
return WalletType.okx;
case 'evmPrivateKey':
return WalletType.evmPrivateKey;
case 'solanaPrivateKey':
return WalletType.solanaPrivateKey;
default:
throw ArgumentError('Invalid WalletType value: $value');
}
}