writeImage method

  1. @override
Future<File?> writeImage(
  1. int page,
  2. String path,
  3. String fileName
)
override

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);
  }
}