Message.imagesOnly constructor
Implementation
factory Message.imagesOnly({
required List<Uint8List> imageBytes,
bool isUser = false,
String text = '',
}) {
return Message(
text: text,
imageBytes: imageBytes.isNotEmpty ? imageBytes.first : null,
images: List<Uint8List>.from(imageBytes),
isUser: isUser,
);
}