writeImage method
Implementation
@override
Future<File?> writeImage(int page, String path, String fileName) async {
String? returnPath = await methodChannel.invokeMethod<String>(
'writeImage', {'path': path, 'fileName': fileName, 'page': page});
if (returnPath != null) {
return Future<File?>.value(File(returnPath));
} else {
return Future<File?>.value(null);
}
}