getImageMessageBubble method
Widget
getImageMessageBubble(
- String? imageUrl,
- String? placeholderImage,
- String? caption,
- ImageBubbleStyle? style,
- MediaMessage message,
- dynamic onClick()?,
- BuildContext context,
- CometChatTheme theme,
override
override this to change view inside content view of message type MessageTypeConstants.image
Implementation
@override
Widget getImageMessageBubble(
String? imageUrl,
String? placeholderImage,
String? caption,
ImageBubbleStyle? style,
MediaMessage message,
Function()? onClick,
BuildContext context,
CometChatTheme theme) {
return CometChatImageBubble(
key: UniqueKey(),
imageUrl: imageUrl,
placeholderImage: placeholderImage,
caption: caption,
theme: theme,
style: style ?? const ImageBubbleStyle(),
onClick: onClick,
);
}