logout static method

Future<bool> logout()

Logout current user

This will clear the cached access token and logout from EZVIZ account

Returns true if logout successful

Implementation

static Future<bool> logout() async {
  try {
    final bool result = await _channel.invokeMethod(EzvizChannelMethods.logout);
    return result;
  } catch (e) {
    ezvizLog('Error during logout: $e');
    return false;
  }
}