AttachmentFileUploader class Null safety

Class responsible for uploading images and files to a given channel

Constructors

AttachmentFileUploader()

Properties

hashCode int
The hash code for this object.
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

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

Operators

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