sendImage method

Future<void> sendImage({
  1. required List<int> bytes,
  2. required String filename,
  3. String contentType = 'image/jpeg',
})

Implementation

Future<void> sendImage({
  required List<int> bytes,
  required String filename,
  String contentType = 'image/jpeg',
}) {
  return sendData(PmPacket(filename: filename, contentType: contentType, data: Uint8List.fromList(bytes)));
}