XMedia class sealed
Outgoing media carrier. Every producer (camera, picker, file-pick,
clipboard paste, voice recorder) emits one of these; every send-path
consumes one. Unifies the prior CameraResult / PickedAsset /
(file, isVideo) records, and pairs with dialog_bloc.sendMedia
(a sealed-switch dispatcher) to replace the four parallel send
methods.
The kind is encoded as the sealed variant (ImageMedia /
VideoMedia / FileMedia / AudioMedia) — pattern-match
exhaustiveness lets the compiler enforce dispatcher coverage.
- Implementers
Properties
- bookmark → Uint8List?
-
Security-scoped bookmark from
XFiles.pick(iOS/macOS) or content-URI bytes (Android). Persisted inpending_uploads.bookmarkso a cold-restart upload can re-acquire sandbox access. Null for in-sandbox files (camera, gallery, paste).final - file → File
-
Local file to read and upload. Always present.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isTemporaryCopy → bool
-
True when file is an app-owned ephemeral copy the picker made for us
(
XPickedFile.isTemporaryCopy— the Android SAF picker copies acontent://source into the app cache). The upload promotes such a source into the managed cache after upload instead of recording a source row that points at the soon-cleared temp. False for durable user-chosen paths.final - name → String?
-
User-facing filename from the picker's display name (
XPickedFile.name), when known. Preferred over the source path's basename forFileInfo.name: on Android the SAF picker stream-copies the content URI to a<appCache>/ux_pick/{ts}_{name}temp, so the path basename is mangled with a timestamp. Null for camera/gallery/paste (no display name).final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited