sendImage method

Future<SendImageResponse> sendImage (
  1. MultipartFile file
)

Send an image to this channel

Implementation

Future<SendImageResponse> sendImage(MultipartFile file) async {
  final response = await _client.post(
    '$_channelURL/image',
    data: FormData.fromMap({'file': file}),
  );
  return _client.decode(response.data, SendImageResponse.fromJson);
}