getScreenSnapShot method

  1. @override
Future<bool?> getScreenSnapShot({
  1. required String fileName,
  2. required String filePath,
})
override

Implementation

@override
Future<bool?> getScreenSnapShot({required String fileName, required String filePath}) async{
  var optionMap = <String, String?>{};
  optionMap.putIfAbsent("fileName", () => fileName );
  optionMap.putIfAbsent("filePath", () => filePath);
  return await methodChannel.invokeMethod('screenCapture', optionMap);
}