sendImage method
sendImage sends an image to the Layrz ecosystem.
Implementation
HttpPacketResponse sendImage({
/// [bytes] is the list of bytes of the image.
required List<int> bytes,
/// [filename] is the name of the file without the extension.
required String filename,
/// [contentType] is the content type of the image.
/// By default is 'image/jpeg'.
String contentType = 'image/jpeg',
}) async {
return sendData(PmPacket(filename: filename, contentType: contentType, data: Uint8List.fromList(bytes)));
}