@override Future<void> logout() async { try { await methodChannel.invokeMethod('logout'); } on PlatformException catch (e) { throw Exception('Failed to logout: ${e.message}'); } }