filename property
The filename for the exported data if the ImageOptions.exportType is not
ImageExportType.dataUrl.
The correct filename extension will be automatically added
based on the selected export format. It can be an absolute path
or file URL or a relative path.
If some relative path is chosen it will be created in a temporary
system directory and overwritten
if the corresponding file already exists. If the value is null
an new temporary file will be created for every export.
Please make sure that the provided filename
is valid for the different
devices and that your application has the corresponding access rights to
write to the desired location. For Android, you will want to make sure to
set this inside one of the directories conforming to scoped storage:
- DCIM/
- Pictures/
For Videos you can additionally use:
- Movies/
// Defaults to:
null
Implementation
final String? filename;