UploadSource class
A file the visitor is sending: its bytes, name and MIME type. Built by the
SDK's pickers (or by the host) and handed to ChatEngine.attach.
- Annotations
Constructors
-
UploadSource({required List<
int> bytes, required String name, required String mimeType}) -
Creates a source.
const
Properties
-
bytes
→ List<
int> -
File contents.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isImage → bool
-
A picture (shown as a thumbnail).
no setter
- mimeType → String
-
MIME type (
image/jpeg,application/pdf, …).final - name → String
-
File name shown to the team.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- size → int
-
Size in bytes.
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