screenshotOn method
Return true if screenshot capabilities has been
successfully enabled or is currently enabled and false otherwise.
throw UnmimplementedError if not implement
Always returns true when an iOS build runs on a Mac —
screenshots are permitted there by default.
Implementation
@override
Future<bool> screenshotOn() async {
final result = await methodChannel.invokeMethod<bool>(screenShotOnConst);
return result ?? false;
}