sendImage method

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

Send a image to the channelId of type channelType

Implementation

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