FakeFile class final
A file of the fake: the API File, its bytes, thumbnails, upload session and transcript.
Constructors
Properties
- attachedTo ↔ String?
-
The message the file is attached to, or null (12 10 item 3).
getter/setter pair
- bytes ↔ Uint8List?
-
The joined bytes after the completion, or null before.
getter/setter pair
- channelId → String?
-
The channel of the file.
no setter
- declaredMime ↔ String
-
The declared type, a hint only (12 6.1).
getter/setter pair
- declaredSha256 ↔ String
-
The declared SHA-256 (lowercase hex).
getter/setter pair
- expiresAt ↔ DateTime
-
When the open session expires (
file.upload_session_ttl).getter/setter pair - hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
The file ID.
no setter
- json → JsonMap
-
The API
File; changed in place, so the attachments of messages show the current state.final - partBytes ↔ int
-
The part size of the session.
getter/setter pair
- partCount ↔ int
-
The number of parts of the session.
getter/setter pair
-
parts
→ Map<
int, FakeUploadPart> -
The stored parts by number.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- servable → bool
-
Whether the server serves the content (12 2: complete, clean or skipped).
no setter
- sessionState ↔ String
-
The session state of 03
file_upload_sessions:open,completed,aborted,expired.getter/setter pair -
thumbnails
→ Map<
String, Uint8List> -
The bytes of each thumbnail variant (
small,medium,large).final - transcriptText ↔ String?
-
The transcript text once
transcript_status = done.getter/setter pair - uploadedBy → String
-
The uploader.
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