getScreenMirroring method
Implementation
@override
Future<bool?> getScreenMirroring() async {
try {
final isMirroring = await methodChannel.invokeMethod('isScreenMirroring');
return isMirroring;
} on PlatformException catch (e) {
if (kDebugMode) {
print("Failed to check screen mirroring: '${e.message}'.");
}
return false;
}
}