getScreenName method
Gets the currently active screen name from the native platform.
Implementation
@override
Future<String?> getScreenName() async {
try {
final screenName =
await methodChannel.invokeMethod<String>('getScreenName');
return screenName;
} on PlatformException catch (e) {
debugPrint('Failed to get screen name: ${e.message}');
return null;
}
}