@override Future<void> TabView(String tab) async { try { await methodChannel.invokeMethod('TabView', {'tab': tab}); } on PlatformException catch (e) { print("Failed to call TabView: ${e.message}"); } }