Message.imageOnly constructor

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

Implementation

factory Message.imageOnly({
  required Uint8List imageBytes,
  bool isUser = false,
  String text = '',
}) {
  return Message(
    text: text,
    imageBytes: imageBytes,
    isUser: isUser,
  );
}