访问受保护资源
@override Future<void> logout() async { try { await methodChannel.invokeMethod('logout'); } on PlatformException catch (e) { throw Exception("请求失败: ${e.message}"); } }