logout method

Future logout()

Logs the current user out.

Implementation

Future<dynamic> logout() async {
  final cmd = Command(
    'LOGOUT',
    writeTimeout: defaultWriteTimeout,
    responseTimeout: defaultResponseTimeout,
  );
  final response = await sendCommand<String>(cmd, LogoutParser());
  isLoggedIn = false;
  _isInIdleMode = false;

  return response;
}