ComposeResult class

One slide's worth of submit output. Per-entry caption + a reference to the picker's original media + (for edited entries) the in-memory composited ui.Image. The chat-side dispatcher (chat_page._sendComposeResults) feeds the composedImage into bloc.sendMediaMessage(OutgoingImageFromComposite(...)) so the message is inserted into the stream before the PNG encode + upload run — telegram's enqueueMessages(mediaReference:) parity.

Reply is page-level and stamped by the caller after ComposePage pops — it does NOT live here because reply state belongs to the chat composer, not the compose surface (telegram model).

Constructors

ComposeResult({required XMedia source, required Image? composedImage, Object? caption, Future<Uint8List>? imageBytes, VideoEditValues? videoEdit})
Creates the result of one entry.
const

Properties

caption → Object?
What MediaHost.caption read from the entry's caption controller on submit; absent when it read none or the page takes none.
final
composedImage → Image?
In-memory composited image for edited entries; null when nothing was edited and source should be uploaded as-is.
final
hashCode → int
The hash code for this object.
no setterinherited
imageBytes → Future<Uint8List>?
Final visual bytes for flows that need to consume compose output after the owning entry has been disposed, such as avatars. Encoded after the page pops, so the caller shows progress where the image lands. A failure is delivered only to listeners.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
source → XMedia
Original picker media — used as the upload source when no edits were applied, and as the fallback for bookmarks / file metadata.
final
videoEdit → VideoEditValues?
Trim / mute values for video entries; baked into the upload by OutgoingVideoFromFile at send time. Null for images or untouched videos. The receiver owns VideoEditValues.overlay's file and deletes it once used.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
resolveImageBytes() → Future<Uint8List>
The final image as bytes: imageBytes, else composedImage as PNG, else source's file.
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited