AttachmentFileUploader class abstract
Class responsible for uploading images and files to a given channel
Constructors
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. -
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. -
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. -
sendImage(
AttachmentFile image, 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. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited