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 {
  final result = await methodChannel.invokeMethod<bool>(screenSetImage);
  return result ?? false;
}