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 ChatError}.
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 {
ChatError.hasErrorFromResult(result);
} on ChatError catch (e) {
throw e;
}
}