DataSource class abstract

DataSource abstract class which every data source will implement inorder to provide any extension functionality

Implementers

Constructors

DataSource.new()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

getAIOptions(User? user, Group? group, CometChatTheme theme, BuildContext context, Map<String, dynamic>? id, AIOptionsStyle? aiOptionStyle) List<CometChatMessageComposerAction>
override this to alter attachment options in CometChatMessageComposer
getAllMessageCategories() List<String>
override this to alter default categories
getAllMessageTemplates({CometChatTheme? theme}) List<CometChatMessageTemplate>
override this to alter template of all type
getAllMessageTypes() List<String>
override this to alter default messages types
getAttachmentOptions(CometChatTheme theme, BuildContext context, Map<String, dynamic>? id) List<CometChatMessageComposerAction>
override this to alter attachment options in CometChatMessageComposer
getAudioMessageBubble(String? audioUrl, String? title, AudioBubbleStyle? style, MediaMessage message, BuildContext context, CometChatTheme theme) Widget
override this to change view inside content view of message type MessageTypeConstants.audio
getAudioMessageContentView(MediaMessage message, BuildContext context, BubbleAlignment alignment, CometChatTheme theme) Widget
override this to change content view for messages of type MessageTypeConstants.audio
getAudioMessageOptions(User loggedInUser, BaseMessage messageObject, BuildContext context, Group? group) List<CometChatMessageOption>
override this to show options for messages of type MessageTypeConstants.audio
getAudioMessageTemplate(CometChatTheme theme) CometChatMessageTemplate
override this to alter template for messages of type MessageTypeConstants.audio
getAuxiliaryHeaderMenu(BuildContext context, User? user, Group? group, CometChatTheme? theme) Widget?
Returns the auxiliary header menu view for the user or group.
getAuxiliaryOptions(User? user, Group? group, BuildContext context, Map<String, dynamic>? id, CometChatTheme? theme) Widget
override this to alter default auxiliary options in CometChatMessageComposer
getBottomView(BaseMessage message, BuildContext context, BubbleAlignment alignment) Widget
override this to change bottom view of every type of message
getCardMessageBubble({CardBubbleStyle? cardBubbleStyle, required CardMessage message, required CometChatTheme theme}) Widget
override this to change view inside content view of message type MessageTypeConstants.file
getCardMessageContentView(CardMessage message, BuildContext context, BubbleAlignment alignment, CometChatTheme theme) Widget
override this to change content view for messages of type MessageTypeConstants.form
getCardMessageOptions(User loggedInUser, BaseMessage messageObject, BuildContext context, Group? group) List<CometChatMessageOption>
override this to show options for messages of type MessageTypeConstants.card
getCardMessageTemplate(CometChatTheme theme) CometChatMessageTemplate
override this to alter template for messages of type MessageTypeConstants.card
getCommonOptions(User loggedInUser, BaseMessage messageObject, BuildContext context, Group? group) List<CometChatMessageOption>
override this to alter options for messages of every type
getConversationSubtitle(Conversation conversation, BuildContext context, CometChatTheme theme, TextStyle? subtitleStyle, {AdditionalConfigurations? additionalConfigurations}) Widget
override this to change the widget shown for subtitle in conversations
getDefaultTextFormatters() List<CometChatTextFormatter>
override this to alter template for messages of type MessageTypeConstants.text
getDeleteMessageBubble(BaseMessage messageObject, CometChatTheme theme) Widget
override this to change view of deleted message
getFileMessageBubble(String? fileUrl, String? fileMimeType, String? title, int? id, FileBubbleStyle? style, MediaMessage message, CometChatTheme theme) Widget
override this to change view inside content view of message type MessageTypeConstants.file
getFileMessageContentView(MediaMessage message, BuildContext context, BubbleAlignment alignment, CometChatTheme theme) Widget
override this to change content view for messages of type MessageTypeConstants.file
getFileMessageOptions(User loggedInUser, BaseMessage messageObject, BuildContext context, Group? group) List<CometChatMessageOption>
override this to show options for messages of type MessageTypeConstants.file
getFileMessageTemplate(CometChatTheme theme) CometChatMessageTemplate
override this to alter template for messages of type MessageTypeConstants.file
getFormMessageBubble({String? title, FormBubbleStyle? formBubbleStyle, required FormMessage message, required CometChatTheme theme}) Widget
override this to change view inside content view of message type MessageTypeConstants.file
getFormMessageContentView(FormMessage message, BuildContext context, BubbleAlignment alignment, CometChatTheme theme) Widget
override this to change content view for messages of type MessageTypeConstants.form
getFormMessageOptions(User loggedInUser, BaseMessage messageObject, BuildContext context, Group? group) List<CometChatMessageOption>
override this to show options for messages of type MessageTypeConstants.form
getFormMessageTemplate(CometChatTheme theme) CometChatMessageTemplate
override this to alter template for messages of type MessageTypeConstants.form
getGroupActionTemplate(CometChatTheme theme) CometChatMessageTemplate
override this to alter template for messages of category action
getId() String
override this to set id for different extensions, used when enabling extensions
getImageMessageBubble(String? imageUrl, String? placeholderImage, String? caption, ImageBubbleStyle? style, MediaMessage message, dynamic onClick()?, BuildContext context, CometChatTheme theme) Widget
override this to change view inside content view of message type MessageTypeConstants.image
getImageMessageContentView(MediaMessage message, BuildContext context, BubbleAlignment alignment, CometChatTheme theme) Widget
override this to change content view for messages of type MessageTypeConstants.image
getImageMessageOptions(User loggedInUser, BaseMessage messageObject, BuildContext context, Group? group) List<CometChatMessageOption>
override this to show options for messages of type MessageTypeConstants.image
getImageMessageTemplate(CometChatTheme theme) CometChatMessageTemplate
override this to alter template for messages of type MessageTypeConstants.image
getLastConversationMessage(Conversation conversation, BuildContext context) String
override this to change last message fetched in conversations
getMessageOptions(User loggedInUser, BaseMessage messageObject, BuildContext context, Group? group) List<CometChatMessageOption>
override this to alter options for messages of given type in messageObject
getMessageTemplate({required String messageType, required String messageCategory, CometChatTheme? theme}) CometChatMessageTemplate?
override this to get messages of different template
getMessageTypeToSubtitle(String messageType, BuildContext context) String
getSchedulerMessageBubble({SchedulerBubbleStyle? schedulerBubbleStyle, required SchedulerMessage message, required CometChatTheme theme}) Widget
override this to change view inside content view of message type MessageTypeConstants.scheduler
getSchedulerMessageContentView(SchedulerMessage message, BuildContext context, BubbleAlignment alignment, CometChatTheme theme) Widget
override this to change content view for messages of type MessageTypeConstants.scheduler
getSchedulerMessageOptions(User loggedInUser, BaseMessage messageObject, BuildContext context, Group? group) List<CometChatMessageOption>
override this to show options for messages of type MessageTypeConstants.scheduler
getSchedulerMessageTemplate(CometChatTheme theme) CometChatMessageTemplate
override this to alter template for messages of type MessageTypeConstants.scheduler
getTextMessageBubble(String messageText, TextMessage message, BuildContext context, BubbleAlignment alignment, CometChatTheme theme, TextBubbleStyle? style, {AdditionalConfigurations? additionalConfigurations}) Widget
override this to change view inside content view of message type MessageTypeConstants.text
getTextMessageContentView(TextMessage message, BuildContext context, BubbleAlignment alignment, CometChatTheme theme, {AdditionalConfigurations? additionalConfigurations}) Widget
override this to change content view for messages of type MessageTypeConstants.text
getTextMessageOptions(User loggedInUser, BaseMessage messageObject, BuildContext context, Group? group) List<CometChatMessageOption>
override this to show options for messages of type MessageTypeConstants.text
getTextMessageTemplate(CometChatTheme theme) CometChatMessageTemplate
override this to alter template for messages of type MessageTypeConstants.text
getVideoMessageBubble(String? videoUrl, String? thumbnailUrl, MediaMessage message, dynamic onClick()?, BuildContext context, CometChatTheme theme, VideoBubbleStyle? style) Widget
override this to change view inside content view of message type MessageTypeConstants.video
getVideoMessageContentView(MediaMessage message, BuildContext context, BubbleAlignment alignment, CometChatTheme theme) Widget
override this to change content view for messages of type MessageTypeConstants.video
getVideoMessageOptions(User loggedInUser, BaseMessage messageObject, BuildContext context, Group? group) List<CometChatMessageOption>
override this to show options for messages of type MessageTypeConstants.video
getVideoMessageTemplate(CometChatTheme theme) CometChatMessageTemplate
override this to alter template for messages of type MessageTypeConstants.video
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited