fileFor method
Path of the draft file for id.
The id is base64url encoded, so any string can be used as a draft id, including slashes and non-ASCII characters. Very long ids are shortened and suffixed with a hash, to stay under the file name limit of the platform.
Implementation
File fileFor(String id) {
return File('${directory.path}${Platform.pathSeparator}${_fileName(id)}');
}