ComposerPickedFile class final
A file selected by the host application for a composed multipart request.
ISpect never reaches into the filesystem itself; the application supplies
the bytes through ISpectOptions.onPickComposerFile, so no file-picker
dependency leaks into the toolkit. Bytes (rather than a path) are carried so
the same value works on web and native.
- Annotations
-
- @immutable
Constructors
-
ComposerPickedFile({required String filename, required List<
int> bytes, String? contentType}) -
const
Properties
-
bytes
→ List<
int> -
Raw file contents.
final
- contentType → String?
-
MIME type, when the picker can determine it (e.g.
image/png).final - filename → String
-
File name advertised in the multipart part (e.g.
avatar.png).final - hashCode → int
-
The hash code for this object.
no setterinherited
- 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