xFile property

XFile xFile

Retrieves this as a XFile

Implementation

XFile get xFile {
  if (kIsWeb) {
    return XFile.fromData(bytes!, name: name, length: size);
  } else {
    return XFile(path!, name: name, bytes: bytes, length: size);
  }
}