sendImage abstract method

Future<SendImageResponse> sendImage(
  1. AttachmentFile image,
  2. String channelId,
  3. String channelType, {
  4. ProgressCallback? onSendProgress,
  5. CancelToken? cancelToken,
})

Uploads a image to the given channel. Returns SendImageResponse once sent successfully.

Optionally, access upload progress using onSendProgress and cancel the request using cancelToken

Implementation

Future<SendImageResponse> sendImage(
  AttachmentFile image,
  String channelId,
  String channelType, {
  ProgressCallback? onSendProgress,
  CancelToken? cancelToken,
});