Message.imagesOnly constructor

Message.imagesOnly({
  1. required List<Uint8List> imageBytes,
  2. bool isUser = false,
  3. String text = '',
})

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,
  );
}