returns File must not be null, the file will be used for saving.
typedef PathResolver = FutureOr<File> Function(Uri uri, Directory root);