getImageExportFile method

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

Get the file to be written to for image export.

Implementation

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