fromFile static method
- File file
Implementation
static XFile fromFile(File file) {
return XFile(
file.absolute.path,
length: file.lengthSync(),
mimeType: mime.lookupMimeType(file.absolute.path),
name: path.basename(file.absolute.path),
);
}