toggleScreenshotWithImage method

  1. @override
Future<bool> toggleScreenshotWithImage()
override

Return true if screenshot capabilities has been successfully enabled or is currently enabled and false otherwise. throw UnmimplementedError if not implement

Implementation

@override
Future<bool> toggleScreenshotWithImage() async {
  _isProtectionOn ? _disableProtection() : _enableProtection();
  return _isProtectionOn;
}