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