file method

File file(
  1. String exportRelative
)

Turns an export-relative path — ExportedShot.image — into a file.

Implementation

File file(String exportRelative) => File(
  '$directory${Platform.pathSeparator}'
  '${exportRelative.replaceAll('/', Platform.pathSeparator)}',
);