setAccount method
设置账号 account 账号标识 accountType 账号类型枚举
Implementation
void setAccount(String account, AccountType accountType) {
String _accountType = accountType.toString().split('.').last;
if (Platform.isIOS) {
_channel.invokeMethod('setAccount',
<String, dynamic>{'account': account, 'accountType': _accountType});
} else {
xgApi.bindAccountWithType(account: account, accountType: _accountType);
}
}