getImageCompressedFile method

File getImageCompressedFile(
  1. {bool fallback = false}
)

Get the placeholder file to compress for image export.

Implementation

File getImageCompressedFile({bool fallback = false}) {
  String imagePath = path.join(
      (fallback ? alternateExportDirectory : exportDirectory).path,
      'compressedImage.jpg');
  return File(imagePath);
}