StreamAttachmentFileUploader class

Stream's default implementation of AttachmentFileUploader

Implemented types

Constructors

StreamAttachmentFileUploader(StreamHttpClient _client)
Creates a new StreamAttachmentFileUploader instance.
const

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

deleteFile(String url, String channelId, String channelType, {CancelToken? cancelToken, Map<String, Object?>? extraData}) Future<EmptyResponse>
Deletes a file using its url from the given channel. Returns EmptyResponse once deleted successfully.
override
deleteImage(String url, String channelId, String channelType, {CancelToken? cancelToken, Map<String, Object?>? extraData}) Future<EmptyResponse>
Deletes a image using its url from the given channel. Returns EmptyResponse once deleted successfully.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
sendFile(AttachmentFile file, String channelId, String channelType, {ProgressCallback? onSendProgress, CancelToken? cancelToken, Map<String, Object?>? extraData}) Future<SendFileResponse>
Uploads a file to the given channel. Returns SendFileResponse once sent successfully.
override
sendImage(AttachmentFile file, String channelId, String channelType, {ProgressCallback? onSendProgress, CancelToken? cancelToken, Map<String, Object?>? extraData}) Future<SendImageResponse>
Uploads a image to the given channel. Returns SendImageResponse once sent successfully.
override
toString() String
A string representation of this object.
inherited

Operators

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