FileUploadHelper class abstract final

Static helpers for inferring file extensions and storage-prefix labels from file paths and MessageType fallbacks.

This is a pure utility class — it has no dependency on RoomManager or any delegates. Upload orchestration lives in MessageMixin.

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

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

Static Methods

fileExtension(String path, {required MessageType fallbackType}) String?
Extracts the file extension from path.
filePrefix(String? ext, {required MessageType fallbackType}) String
Maps a file ext to a short storage prefix (img / aud / vid / txt).