file library

Picked and shared files.

Classes

XFile
A handle to a file on local disk. Minimal — path is the only guaranteed field. Returned from anything in package:ux that produces a file (camera capture today; future writers).
XFiles
Static facade over the platform's file services — sharing, picking, saving, and scoped access.
XPickedFile
A file the user picked. path is on local disk and readable by dart:io File while the picker session's grant is active.
XVideoThumbnail
A single frame extracted from a video file. pngBytes is the encoded PNG ready to embed in a thumbnail proto / paint via Image.memory; width / height describe the encoded image, which may be smaller than the source video due to the maxWidth constraint at extraction.

Enums

XFileSaveStatus
Outcome of XFiles.saveCopy. denied means the user refused the storage permission (Android API <29 only) — the save can't proceed. cancelled means the user dismissed the export picker (iOS). Hard failures (unreadable source, write error) throw a PlatformException.