withMedia method
Create message with given media stream.
If you specify MessageOptions.withMedia then you will not be able to specify MessageOptions.withBody because they are mutually exclusive message types. Created message type will be MessageType.MEDIA.
Implementation
void withMedia(File input, String mimeType) {
if (body != null) {
throw Exception('MessageOptions.withBody has already been specified');
}
inputPath = input.path;
this.mimeType = mimeType;
}