PrismPickedFile class
A file the app picked, decoupled from any picker package.
Prism deliberately does not depend on image_picker or file_picker;
your onPick callback calls whichever you use and hands back these value
types. bytes, when provided, powers previews.
Constructors
Properties
- bytes → Uint8List?
-
Image bytes for preview thumbnails (image picker tiles only).
final
- data → Object?
-
Escape hatch for the raw platform object (
XFile,PlatformFile), so callers never lose information.final - extension → String
-
Extension without the dot, lower-cased.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- mimeType → String?
-
Best-effort MIME type, e.g.
application/pdf.final - name → String
-
Display name, e.g.
receipt.pdf.final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sizeBytes → int
-
Size in bytes.
final
- sizeLabel → String
-
Human-readable size, e.g.
1.2 MB.no setter
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