kickAllDevices method Null safety
Kicks out all the devices logged in under the specified account.
Param username
The account you want to log out from all the devices.
Param password
The password.
Throws A description of the exception. See {@link EMError}.
Implementation
Future<void> kickAllDevices(
{required String username, required String password}) async {
EMLog.v('kickAllDevices: $username, "******"');
Map req = {'username': username, 'password': password};
Map result =
await _channel.invokeMethod(ChatMethodKeys.kickAllDevices, req);
try {
EMError.hasErrorFromResult(result);
} on EMError catch (e) {
throw e;
}
}