UploadProgressMixin mixin

A mixin for ChatController implementations that need to handle upload progress tracking for messages (e.g., images, files).

It provides methods to get a progress stream, update progress, and clean up.

Mixin applications

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

clearUploadProgress(String id) → void
Closes and removes the progress stream for the given message ID. Typically called when the upload is complete or cancelled.
disposeUploadProgress() → void
Disposes all active upload progress controllers. Should be called in the ChatController.dispose method.
getUploadProgress(String id) Stream<double>
Gets a stream that emits upload progress updates (0.0 to 1.0) for a given message ID.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
updateUploadProgress(String id, double progress) → void
Updates the upload progress for a specific message ID.

Operators

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