likeminds_chat_flutter_core
library
Classes
-
AddPollOptionRequest
-
-
AddPollOptionRequestBuilder
-
-
AddPollOptionResponse
-
-
AddPollOptionResponseEntity
-
-
Attachment
-
-
AttachmentEntity
-
-
BlockMemberRequest
-
-
BlockMemberRequestBuilder
-
-
BlockMemberResponse
-
-
BlockMemberResponseEntity
-
-
ChatRoom
-
-
ChatroomAction
-
-
ChatroomActionEntity
-
-
ChatRoomEntity
-
-
CheckDMLimitRequest
-
-
CheckDmLimitRequestBuilder
-
-
CheckDMLimitResponse
-
-
CheckDMLimitResponseEntity
-
-
CheckDMStatusRequest
-
-
CheckDMStatusRequestBuilder
-
-
CheckDMStatusResponse
-
-
CheckDMStatusResponseEntity
-
-
CheckDMTabResponse
-
-
CheckDMTabResponseEntity
-
-
-
-
-
-
-
-
-
-
Conversation
-
-
ConversationEntity
-
-
ConversationSearchRequest
-
-
ConversationSearchRequestBuilder
-
-
ConversationSearchResponse
-
-
ConversationSearchResponseEntity
-
-
CreateDMChatroomRequest
-
-
CreateDMChatroomRequestBuilder
-
-
CreateDMChatroomResponse
-
-
CreateDMChatroomResponseEntity
-
-
-
-
DecodeUrlRequest
-
-
DecodeUrlRequestBuilder
-
-
DecodeUrlResponse
-
-
DecodeUrlResponseEntity
-
-
DeleteConversationRequest
-
-
DeleteConversationRequestBuilder
-
-
DeleteConversationResponse
-
-
DeleteConversationResponseEntity
-
-
DeleteParticipantRequest
-
-
DeleteParticipantRequestBuilder
-
-
DeleteReactionRequest
-
-
DeleteReactionRequestBuilder
-
-
DmAllMember
-
-
DmAllMemberEntity
-
-
EditConversationRequest
-
-
EditConversationRequestBuilder
-
-
EditConversationResponse
-
-
EditConversationResponseEntity
-
-
EditProfileRequest
-
Request model for editing user profile
-
FetchDMFeedRequest
-
-
FetchDMFeedRequestBuilder
-
-
FetchDMFeedResponse
-
-
FetchDMFeedResponseEntity
-
-
FollowChatroomRequest
-
-
FollowChatroomRequestBuilder
-
-
GetAIChatbotsRequest
-
-
GetAIChatbotsRequestBuilder
-
-
GetAIChatbotsResponse
-
-
GetAIChatbotsResponseEntity
-
-
GetAllMembersRequest
-
-
GetAllMembersRequestBuilder
-
-
GetAllMembersResponse
-
-
GetAllMembersResponseEntity
-
-
GetChatroomRequest
-
-
GetChatroomRequestBuilder
-
-
GetChatroomResponse
-
-
GetChatroomResponseEntity
-
-
-
-
GetConversationRequest
-
-
GetConversationRequestBuilder
-
-
GetConversationResponse
-
-
GetConversationResponseEntity
-
-
GetExploreFeedRequest
-
-
GetExploreFeedRequestBuilder
-
-
GetExploreFeedResponse
-
-
GetExploreFeedResponseEntity
-
-
GetExploreTabCountResponse
-
-
GetExploreTabCountResponseEntity
-
-
GetHomeFeedRequest
-
-
GetHomeFeedRequestBuilder
-
-
GetHomeFeedResponse
-
-
GetHomeFeedResponseEntity
-
-
GetParticipantsRequest
-
-
GetParticipantsRequestBuilder
-
-
GetParticipantsResponse
-
-
GetParticipantsResponseEntity
-
-
GetPollUsersRequest
-
-
GetPollUsersRequestBuilder
-
-
GetPollUsersResponse
-
-
GetPollUsersResponseEntity
-
-
GetReportTagRequest
-
-
GetReportTagRequestBuilder
-
-
GetReportTagResponse
-
-
GetReportTagResponseEntity
-
-
GroupTag
-
-
GroupTagEntity
-
-
InitiateUserRequest
-
-
InitiateUserRequestBuilder
-
-
InitiateUserResponse
-
-
InitiateUserResponseEntity
-
-
A widget that displays a menu of attachment options in the chatroom bar.
This menu is shown when the attachment button is tapped.
-
A widget that displays a single item in the attachment menu.
-
Data class for attachment menu items
-
Style configuration for attachment menu items
-
Style configuration for the attachment menu
-
LMAuthToken
-
-
LMAuthTokenBuilder
-
-
LMChatAIButton
-
A button widget that provides direct access to AI chatroom functionality.
-
LMChatAIButtonProps
-
A class that holds the configuration properties for the LMChatAIButton.
These properties are used to authenticate and initialize the AI chatbot.
-
LMChatAIButtonStyle
-
Style class for customizing the appearance of LMChatAIButton
-
LMChatAnalyticsBloc
-
LMChatAnalyticsBloc handle all the analytics related actions
like fire analytics event.
LMChatAnalyticsEvent defines the events which are handled by this bloc.
LMChatAnalyticsState defines the states which are emitted by this bloc
-
LMChatAnalyticsEvent
-
LMChatAnalyticsEvent defines the events which are handled by LMChatAnalyticsBloc.
-
LMChatAnalyticsEventFired
-
LMChatAnalyticsEventFired defines the state when an analytics event is fired.
eventName of type String defines the name of the event fired.
eventProperties of type Map<String, dynamic> defines the properties
of the event fired.
-
LMChatAnalyticsInitiated
-
LMChatAnalyticsInitiated defines the state when LMChatAnalyticsBloc is initiated.
-
LMChatAnalyticsKeys
-
-
LMChatAnalyticsState
-
LMChatAnalyticsState defines the states which are emitted by LMChatAnalyticsBloc.
-
LMChatAppBar
-
A custom AppBar for chat interfaces.
-
LMChatAppBarStyle
-
Style configuration for LMChatAppBar.
-
LMChatApproveRejectStyle
-
Style class for the Approve/Reject widget container.
-
LMChatApproveRejectView
-
A Flutter StatefulWidget that displays Approve/Reject options, typically for DM requests.
-
LMChatAttachmentViewData
-
LMChatAttachmentViewData
is a model class that holds the data for the attachment view.
-
LMChatAttachmentViewDataBuilder
-
LMChatAttachmentViewDataBuilder
is a builder class that helps in building the LMChatAttachmentViewData
object.
-
LMChatAudioHandler
-
Abstract class defining the interface for audio handling operations
-
A widget to display the chat bar header.
used in the chatroom bar.
to display the user name and the message to be replied.
or the message to be edited.
-
A class to style the chat bar header.
-
LMChatBottomSheet
-
-
LMChatBottomSheetStyle
-
-
LMChatBubble
-
The chat bubble widget.
This widget is used to display the chat bubble.
-
LMChatBubbleContent
-
-
LMChatBubbleContentStyle
-
-
A widget that represents the footer of a chat bubble.
-
A style class for customizing the appearance of the chat bubble footer.
-
-
LMChatBubbleMedia
-
-
LMChatBubbleReactions
-
-
LMChatBubbleReactionsStyle
-
A class that defines the style for the chat bubble reactions.
-
LMChatBubbleReply
-
A widget to display a reply to a conversation
-
LMChatBubbleReplyStyle
-
Style for the reply item
-
LMChatBubbleSides
-
-
LMChatBubbleStyle
-
Style configuration for the chat bubble.
-
LMChatButton
-
This widget is used to display a text button
The LMChatButton can be customized by passing in the required parameters
-
LMChatButtonStyle
-
LMChatButtonStyle is used to style the LMChatButton
-
LMChatCache
-
LMChatCache
is a model class that contains the key and value of the cache.
The key is the unique identifier of the cache and the value is the data that is stored in the cache.
-
LMChatCacheBuilder
-
LMCacheBuilder
is a builder class that helps in building the LMChatCache
object.
The key
and value
of the cache can be set using the key
and value
methods respectively.
-
LMChatChatroomActionInitial
-
-
LMChatChatroomActionLoading
-
-
LMChatChatroomTopicError
-
-
LMChatChatroomTopicSet
-
-
LMChatChip
-
A widget which displays a chip.
-
LMChatChipStyle
-
A class which describes the style for the LMChatChip
-
LMChatClient
-
The starting point class of the SDK
-
LMChatClientBuilder
-
Builder class to initiate the SDK
apiKey
is the API key provided by LikeMinds
sdkCallback is the callback to handle the events
Returns a new instance of the SDK LMChatClient
-
LMChatConfig
-
Configuration class for the Likeminds Chat SDK.
-
LMChatConversationActionBloc
-
LMChatConversationActionBloc is responsible for handling the conversation actions.
It extends
Bloc
and uses LMChatConversationActionEvent and LMChatConversationActionState.
It has a singleton instance instance which is used to access the bloc.
-
LMChatConversationActionError
-
LMChatConversationActionLoading
is the loading state of the ConversationActionBloc
.
-
LMChatConversationActionEvent
-
LMChatConversationActionEvent is the base class for all the events related to conversation actions.
-
LMChatConversationActionInitial
-
LMChatConversationActionInitial is the initial state of the
ConversationActionBloc
.
-
LMChatConversationActionInterface
-
The interface for the chat conversation actions.
-
LMChatConversationActionState
-
LMChatConversationActionState is the base class for all states in the
ConversationActionBloc
.
-
LMChatConversationBloc
-
LMChatConversationBloc is the BLoC that manages conversations
-
LMChatConversationDelete
-
LMChatConversationDelete is the state when a conversation is deleted.
-
LMChatConversationDeleteError
-
LMChatConversationDeleteError is the state when an error occurs while deleting a conversation.
-
LMChatConversationEdited
-
LMChatConversationEdited is the state when a conversation is edited.
-
LMChatConversationErrorState
-
Represents an error state in the conversation.
-
LMChatConversationEvent
-
Abstract class representing a conversation event
-
LMChatConversationInitialState
-
Represents the initial state of a conversation.
-
LMChatConversationList
-
A widget that displays a list of conversations.
-
LMChatConversationLoadedState
-
Represents the loaded state of a conversation.
-
LMChatConversationLoadingState
-
Represents the loading state of a conversation.
-
LMChatConversationPostedState
-
Represents the state after a conversation has been posted.
-
LMChatConversationState
-
Abtract class representing a LMChat conversation state
-
LMChatConversationTextChangeEvent
-
-
LMChatConversationUpdatedState
-
Represents an updated state of the conversation.
-
LMChatConversationViewData
-
LMChatConversationViewData
is a model class that holds the data for the conversation view.
This class is used to display the conversation information in the chat screen.
-
LMChatConversationViewDataBuilder
-
LMChatConversationViewDataBuilder
is a builder class used to create an instance of LMChatConversationViewData
.
This class is used to create an instance of LMChatConversationViewData
with the provided values.
-
LMChatCore
-
The core class of the LikeMinds Chat SDK.
This class is used to initialize the chat, show the chat, and logout the user session.
-
LMChatCoreCallback
-
Callback class for the core module
This class is used to handle the callback events from the core module
The core module will call the methods in this class when the corresponding events are triggered
-
LMChatCreatePollBuilderDelegate
-
LMChatCreatePollBuilderDelegate is a class which is used to build the create poll
screen. It is used to customize the create poll screen.
-
LMChatCreatePollScreen
-
Create Poll widget
responsible for creating the poll
-
LMChatCreatePollStyle
-
LMChatCreatePollStyle is a class which is used to style the create poll
screen. It is used to customize the chatroom screen.
-
A class representing the style properties for a custom popup menu.
-
LMChatDefaultDarkTheme
-
Default dark theme colors and values for the LMChat UI
-
LMChatDefaultTheme
-
-
LMChatDeleteConversationEvent
-
is used to delete a conversation.
-
LMChatDeleteReaction
-
-
LMChatDeleteReactionError
-
-
LMChatDeleteReactionState
-
-
LMChatDeleteReasonViewData
-
A data class to hold the delete reason data.
-
LMChatDeleteReasonViewDataBuilder
-
A builder class to build LMChatDeleteReasonViewData
-
LMChatDialog
-
A widget to show a chat dialog.
-
LMChatDialogStyle
-
The style of the LMChatDialog.
-
LMChatDMConversationList
-
A widget that displays a list of direct messages.
-
LMChatDMFeedBloc
-
BLoC responsible for handling the DM Home Feed,
Allows for users to fetch, and refresh the feed,
Also, updates the feed based on a realtime update.
-
LMChatDMFeedError
-
State class to represent error state of DM home feed.
-
LMChatDMFeedEvent
-
Base event class for LMChatDMFeedBloc
Tracks events related to DM home feed
-
LMChatDMFeedLoaded
-
State class to represent loaded state of DM home feed.
-
LMChatDMFeedLoading
-
State class to represent loading state of DM home feed.
-
LMChatDMFeedState
-
Base state class for LMChatDMFeedBloc
Tracks all states related to DM home feed
-
LMChatDMFeedUpdated
-
State class to represent updated state of DM home feed.
-
LMChatDMInitial
-
State class to represent initial state of DM home feed.
-
LMChatDocumentPreview
-
A widget that displays a document preview with single attachment.
-
LMChatDocumentPreviewStyle
-
Defines the style properties for the LMChatDocumentPreview widget.
-
LMChatDocumentShimmer
-
A shimmer loading widget that is shown while document tile is loading
-
LMChatDocumentShimmerStyle
-
Defines the style properties for the LMChatDocumentShimmer widget.
-
LMChatDocumentStyle
-
-
LMChatDocumentThumbnail
-
A widget that displays a thumbnail for a document.
-
LMChatDocumentThumbnailStyle
-
Defines the style properties for a document tile in the LMChat UI.
-
LMChatDocumentTile
-
A widget that displays a tile for a document.
-
LMChatDocumentTilePreview
-
A widget that displays multiple document previews.
-
LMChatDocumentTilePreviewState
-
The state for the GetMultipleDocPreview widget.
-
LMChatDocumentTilePreviewStyle
-
Defines the style properties for the LMChatDocumentTilePreview widget.
-
LMChatDocumentTileStyle
-
Defines the style properties for a document tile in the LMChat UI.
-
LMChatEditConversationEvent
-
LMChatEditConversationEvent is used to edit a conversation.
It extends LMChatConversationActionEvent and has the following properties:
-
LMChatEditConversationState
-
LMChatEditConversationState is the state when a conversation is edited.
-
LMChatEditingConversationEvent
-
LMChatEditingConversationEvent is used to edit a conversation.
It extends LMChatConversationActionEvent and has the following properties:
-
LMChatEditRemoveEvent
-
-
LMChatEditRemoveState
-
LMChatEditRemoveState is the state when an edit is removed.
-
LMChatExploreBuilderDelegate
-
LMChatExploreBuilderDelegate is a class which is used to build the explore
screen. It is used to customize the explore screen.
-
LMChatExploreConfig
-
LMChatExploreConfig is a class which is used to configure the explore
screen. It is used to customize the explore screen.
-
LMChatExplorePage
-
A screen to show the Explore Feed of LMChat
-
LMChatExploreSetting
-
LMChatExploreSetting is a class which is used to configure the explore
screen. It is used to customize the explore screen.
-
LMChatExploreStyle
-
LMChatExploreStyle is a class which is used to style the explore
screen. It is used to customize the explore screen.
-
LMChatExploreTile
-
Core widget to represent an Explore chatroom tile
-
LMChatFetchChatroomEvent
-
-
LMChatFetchConversationsEvent
-
Event responsible for fetching conversations in a chatroom
-
LMChatFetchDMFeedEvent
-
Event class for fetching DM feed.
Requires a page size int
-
LMChatFetchHomeFeedEvent
-
Event class for fetching Home feed.
Requires a page size int
-
LMChatFireAnalyticsEvent
-
LMChatFireAnalyticsEvent defines the event to fire an analytics event.
eventName of type String defines the name of the event to be fired.
eventProperties of type Map<String, dynamic> defines the properties
of the event to be fired.
-
LMChatFloatingActionButton
-
-
LMChatFloatingActionButtonStyle
-
-
LMChatFollowChatroomEvent
-
-
LMChatGetParticipantsEvent
-
LMChatGetParticipantsEvent is used to get the participants of a chat room.
-
LMChatGIF
-
A widget to display and control GIF animations in the LMChat UI.
The media parameter is required and contains the GIF data.
-
LMChatGIFStyle
-
Defines the style properties for the LMChatGIF widget.
-
LMChatHideEmojiKeyboardEvent
-
-
LMChatHideEmojiKeyboardState
-
-
LMChatHomeFeedBloc
-
BLoC responsible for handling the Group Home Feed,
Allows for users to fetch, and refresh the feed,
Also, updates the feed based on a realtime update.
-
LMChatHomeFeedError
-
State class to represent error state of DM home feed.
-
LMChatHomeFeedEvent
-
Base event class for LMChatHomeFeedBloc
Tracks events related to DM home feed
-
LMChatHomeFeedLoaded
-
State class to represent loaded state of DM home feed.
-
LMChatHomeFeedLoading
-
State class to represent loading state of DM home feed.
-
LMChatHomeFeedState
-
Base state class for LMChatDMFeedBloc
Tracks all states related to DM home feed
-
LMChatHomeFeedUpdated
-
State class to represent updated state of DM home feed.
-
LMChatHomeInitial
-
State class to represent initial state of DM home feed.
-
LMChatIcon
-
A simple icon widget to be used throughout the Chat
Represents three types of icons - icon, png, svg
Provides customisability through LMChatIconStyle
-
LMChatIconStyle
-
-
LMChatImage
-
A widget to display an image in a post.
The image can be fetched from a URL or from a file.
The LMChatImage can be customized by passing in the required parameters
and can be used in a post.
The image can be tapped to perform an action.
The image can be customized by passing in the required parameters
and can be used in a post.
-
LMChatImageStyle
-
The style class for LMChatImage
-
LMChatInitAnalyticsEvent
-
LMChatInitAnalyticsEvent defines the event to initiate LMChatAnalyticsBloc.
-
LMChatInitialiseConversationsEvent
-
Event responsible for initialising LMChatConversationBloc
-
LMChatJoinButton
-
-
LMChatLeaveChatroomEvent
-
-
LMChatLinkAttachedState
-
It is the state when a link is attached to the conversation.
ogTags - The Open Graph tags of the link
link - The link
-
LMChatLinkPreview
-
A widget to display a link preview in a chatroom.
The LMChatLinkPreview can be customized by passing in the required parameters
and can be used in a chatroom.
-
LMChatLinkPreviewBar
-
A widget to display a link preview bar on top of the chat bar textfield.
-
LMChatLinkPreviewBarStyle
-
Represents the style configuration for the LMChatLinkPreviewBar widget.
The leadingStyle defines the style for the leading image.
The titleStyle defines the style for the title text.
The subtitleStyle defines the style for the subtitle text.
The cancelButtonStyle defines the style for the cancel button.
The margin defines the margin around the widget.
The padding defines the padding around the widget.
The innerPadding defines the padding inside the widget.
The height defines the height of the widget.
The width defines the width of the widget.
The decoration defines the decoration for the widget.
-
LMChatLinkPreviewRemovedEvent
-
-
LMChatLinkPreviewStyle
-
Represents the style configuration for the LMChatLinkPreviewBar widget.
The
leadingStyle
defines the style for the leading image.
The titleStyle defines the style for the title text.
The subtitleStyle defines the style for the subtitle text.
The cancelButtonStyle
defines the style for the cancel button.
The margin defines the margin around the widget.
The padding defines the padding around the widget.
The innerPadding defines the padding inside the widget.
The height defines the height of the widget.
The width defines the width of the widget.
The decoration defines the decoration for the widget.
-
LMChatLinkRemovedState
-
It is the state when a link is removed from the conversation.
isPermanentlyRemoved - If the link is permanently removed
-
LMChatLoader
-
-
LMChatLoaderStyle
-
-
LMChatLocalConversationEvent
-
-
LMChatLocalConversationState
-
Represents a local state of the conversation.
-
LMChatLocalPreference
-
LMChatLocalPreference is responsible for handling the local preferences of the chat.
It has a singleton instance instance which is used to access the preferences.
It has functions to store and fetch the user data, member rights, community data, cache data and clear the local data.
-
LMChatLoginRequiredEvent
-
LMChatLoginRequiredEvent defines the event when login is required.
-
LMChatLoginRequiredState
-
LMChatLoginRequiredState defines the state when login is required.
-
LMChatLogoutEvent
-
LMChatLogoutEvent defines the event when user logged out.
-
LMChatLogoutState
-
LMChatLogoutState defines the state when user logged out.
-
LMChatMarkReadChatroomEvent
-
-
LMChatMediaErrorStyle
-
-
LMChatMediaErrorWidget
-
-
LMChatMediaForwardingBuilderDelegate
-
Delegate class for building the widgets related to LMChatMediaForwardingScreen
-
LMChatMediaForwardingConfig
-
LMChatMediaForwardingConfig is a class which is used to configure the chat media_forwarding
screen. It is used to customize the chat media_forwarding screen.
builder is used to set builders for the chat media_forwarding screen.
setting is used to set the settings for the chat media_forwarding screen.
style is used to set the style for the chat media_forwarding screen.
-
LMChatMediaForwardingScreen
-
A screen to preview media before adding attachments to a conversation
-
LMChatMediaForwardingSetting
-
Setting class for the Chat MediaForwarding Screen.
-
LMChatMediaForwardingStyle
-
Style class for the Chat MediaForwarding Screen.
-
LMChatMediaHandler
-
A class to manage all media picking, and accessing
-
LMChatMediaModel
-
LMChatMediaModel is a model class that represents media in a chat conversation.
It contains information about the media file, its type, dimensions, and additional metadata.
-
LMChatMediaPreviewBuilderDelegate
-
Delegate class for building the widgets related to LMChatMediaPreviewScreen
-
LMChatMediaPreviewConfig
-
LMChatMediaPreviewConfig is a class which is used to configure the chat media_preview
screen. It is used to customize the chat media_preview screen.
builder is used to set builders for the chat media_preview screen.
setting is used to set the settings for the chat media_preview screen.
style is used to set the style for the chat media_preview screen.
-
LMChatMediaPreviewScreen
-
A screen to preview media before adding attachments to a conversation
-
LMChatMediaPreviewSetting
-
Setting class for the Chat MediaForwarding Screen.
-
LMChatMediaPreviewStyle
-
Style class for the Chat MediaForwarding Screen.
-
LMChatMediaShimmerStyle
-
-
LMChatMediaShimmerWidget
-
-
LMChatMemberListBuilderDelegate
-
LMChatMemberListBuilderDelegate is a class which is used to build the member list
screen. It is used to customize the member list screen.
-
LMChatMemberListConfig
-
LMChatMemberListConfig is a class which is used to configure the member list
screen. It is used to customize the member list screen configuration.
-
LMChatMemberListSetting
-
LMChatMemberListSetting is a class which is used to set the member list
screen settings. It is used to customize the member list screen settings.
-
LMChatMemberListStyle
-
LMChatMemberListStyle is a class which is used to style the member list
screen. It is used to customize the member list screen styling.
-
The chat menu widget.
This widget is used to show the chat menu.
The LMChatMenu widget takes the following parameters:
-
The chat menu item widget.
This widget is used to show the chat menu item.
The LMChatMenuItem widget takes the following parameters:
-
The style for the chat menu item.
This class is used to style the chat menu item.
The LMChatMenuItemStyle widget takes the following parameters:
-
LMChatMenuItemViewData
is a model class that holds the data for the menu item view.
This class is used to display the menu items in the chat screen.
-
LMChatMenuItemViewDataBuilder
is a builder class used to create an instance of LMChatMenuItemViewData
.
-
The style for the chat menu.
This class is used to style the chat menu.
The LMChatMenuStyle class takes the following parameters:
-
LMChatMultiMediaConversationErrorState
-
Represents an error state in a multimedia conversation.
-
LMChatMultiMediaConversationLoadingState
-
Represents the loading state for a multimedia conversation.
-
LMChatMultiMediaConversationPostedState
-
Represents the state after a multimedia conversation has been posted.
-
LMChatMuteChatroomEvent
-
-
LMChatNotificationHandler
-
This class handles all the notification related logic
It registers the device for notifications in the SDK
It handles the notification when it is received and shows it (if appropriate)
It routes the notification to the appropriate screen on tap
Since this is a singleton class, it is initialized on the client side
-
LMChatOGTagsViewData
-
LMChatOGTagsViewData
is a model class that contains the data required to display the Open Graph tags in the chat.
This class is used to display the Open Graph tags in the chat screen.
-
LMChatOGTagsViewDataBuilder
-
LMChatOGTagsViewDataBuilder
is a builder class used to create an instance of LMChatOGTagsViewData
.
This class is used to create an instance of LMChatOGTagsViewData
with the provided values.
-
LMChatOptionTile
-
Option tile for poll
responsible for creating the poll option
-
LMChatParticipantBuilderDelegate
-
Delegate class for building the participant widget
-
LMChatParticipantConfig
-
Configuration class for the Likeminds Chat Participant.
-
LMChatParticipantsBloc
-
LMChatParticipantsBloc is responsible for handling the participants of a chat room.
It extends
Bloc
and uses LMChatParticipantsEvent and LMChatParticipantsState.
It has a singleton instance instance which is used to access the bloc.
-
LMChatParticipantsErrorState
-
LMChatParticipantsErrorState is the state when an error occurs while loading participants.
-
LMChatParticipantSetting
-
Setting class for the Likeminds Chat Participant.
-
LMChatParticipantsEvent
-
LMChatParticipantsEvent is the base class for all the events related to participants of a chat room.
-
LMChatParticipantsInitialState
-
LMChatParticipantsInitialState is the initial state of the participants bloc.
-
LMChatParticipantsLoadedState
-
LMChatParticipantsPaginationLoading
is the state when the participants data loaded.
-
LMChatParticipantsLoadingState
-
LMChatParticipantsLoadingState is the state when the participants are being loading.
-
LMChatParticipantsPaginationLoadingState is the state when the participants are being loaded for pagination.
-
LMChatParticipantsState
-
abstract class LMChatParticipantsState is used to define the state of the participants bloc.
-
LMChatParticipantStyle
-
Style class for the Likeminds Chat Participant.
-
LMChatPoll
-
A widget that represents a poll in the LM Chat application.
-
LMChatPollConfig
-
LMChatPollConfig is a class which is used to configure the chatroom
screen. It is used to customize the create poll screen.
-
LMChatPollOption
-
Poll option widget
responsible for rendering the poll option
-
LMChatPollOptionStyle
-
Style class for Poll option widget
-
LMChatPollOptionViewData
-
LMChatPollOptionViewData
is a model class used to represent the poll option data in the chat.
This class is used to display the poll options in the chat screen.
-
LMChatPollOptionViewDataBuilder
-
LMChatPollOptionViewDataBuilder
is a builder class used to create an instance of LMChatPollOPtionViewData
.
This class is used to create an instance of LMChatPollOPtionViewData
with the provided values.
-
LMChatPollResultBuilderDelegate
-
LMChatPollResultBuilderDelegate is a class which is used to build the chatroom
screen. It is used to customize the chatroom screen.
-
LMChatPollResultScreen
-
A screen to display poll results.
-
LMChatPollSetting
-
LMChatPollSetting is a class which is used to configure the create poll
screen. It is used to customize the chatroom screen.
-
LMChatPollStyle
-
LMChatCreatePollStyle is a class which is used to style the create poll
screen. It is used to customize the chatroom screen.
-
LMChatPollUtils
-
Utility class for poll related operations.
-
-
LMChatPostConversationEvent
-
Event responsible for creating and posting a new conversation
-
LMChatPostMultiMediaConversationEvent
-
Event responsible for creating and posting a multimedia conversation
-
LMChatPostPollConversationEvent
-
Event responsible for creating and posting a poll conversation
-
LMChatProfileBloc
-
LMChatProfileBloc
handle all the profile related actions
like login, logout, route to user profile.
LMChatProfileEvent defines the events which are handled by this bloc.
-
LMChatProfileEvent
-
LMChatProfileEvent defines the events which are handled by this bloc.
-
LMChatProfileEventInitEvent
-
LMChatProfileStateInitState defines the state when LMChatProfileBloc is initiated.
-
LMChatProfileInitState
-
LMChatProfileStateInitState defines the state when LMChatProfileBloc is initiated.
-
LMChatProfilePicture
-
-
LMChatProfilePictureStyle
-
-
LMChatProfileState
-
LMChatProfileState defines the states which are emitted by the LMChatProfileBloc.
-
LMChatPutReaction
-
-
LMChatPutReactionError
-
-
LMChatPutReactionState
-
-
LMChatReactionBar
-
A widget that displays a bar for selecting reactions.
-
LMChatReactionBarStyle
-
A class that defines the style for the reaction bar in the chat interface.
-
LMChatReactionBottomSheet
-
A widget that displays a bottom sheet for selecting reactions.
-
LMChatReactionBottomSheetStyle
-
A class that defines the style for the reaction bottom sheet.
-
LMChatReactionKeyboard
-
A widget for choosing emojis from the keyboard
for reaction purposes, and more
-
LMChatReactionKeyboardStyle
-
-
LMChatReactionViewData
-
LMChatReactionViewData
is a model class that contains the data required to render a reaction in the chat.
This class is used to display the reactions in the chat screen.
-
LMChatReactionViewDataBuilder
-
LMChatReactionViewDataBuilder
is a builder class used to create an instance of LMChatReactionViewData
.
This class is used to create an instance of LMChatReactionViewData
with the provided values.
-
LMChatRefreshBarEvent
-
is used to refresh the chatroom bar.}
-
LMChatRefreshBarState
-
-
LMChatRefreshDMFeedEvent
-
Event class for refreshing DM feed
in cases of realtime update, or changing states
-
LMChatRefreshHomeFeedEvent
-
Event class for refreshing Home feed
in cases of realtime update, or changing states
-
LMChatReplyConversationEvent
-
is used to reply to a conversation.
-
LMChatReplyConversationState
-
LMChatReplyConversationState is the state when a conversation is replied.
-
LMChatReplyRemoveEvent
-
is used to remove the reply state.
-
LMChatReplyRemoveState
-
LMChatReplyRemoveState is the state when a reply is removed.
-
LMChatReportConfig
-
LMChatReportConfig is a class which is used to configure the chat report
screen. It is used to customize the chat report screen.
builder is used to set builders for the chat report screen.
setting is used to set the settings for the chat report screen.
style is used to set the style for the chat report screen.
-
LMChatReportScreen
-
Report screen for reporting abuse
reportChipBuilder - Report chip builder
reportContentBuilder - Report content builder
entityId - The id of the entity to report (i.e. conversation)
entityCreatorId - The id of the entity creator
entityType - The type of the entity
-
LMChatReportTagViewData
-
A view data class to hold the report tag data.
id is the id of the report tag.
name is the name of the report tag.
-
LMChatReportTagViewDataBuilder
-
A builder class to build LMChatReportTagViewData
id is the id of the report tag.
name is the name of the report tag.
-
LMChatRichText
-
A customizable rich text widget to be used throughout the Chat experience.
-
LMChatRichTextStyle
-
Style class for LMChatRichText; used for customization.
-
LMChatroomActionBloc
-
-
LMChatroomActionEvent
-
-
LMChatroomActionState
-
-
LMChatroomActionUpdateErrorState
-
State to represent an error during chatroom action updates
-
LMChatroomActionUpdateEvent
-
-
LMChatroomActionUpdateState
-
-
LMChatroomBar
-
A widget to display the chatroom bar.
It has a text field to type the message and send button.
-
LMChatroomBloc
-
BLoC responsible for handling the Chatroom,
Allows for users to fetch and display a chatroom,
-
LMChatroomBuilderDelegate
-
LMChatroomBuilderDelegate is a class which is used to build the chatroom
screen. It is used to customize the chatroom screen.
-
LMChatroomConfig
-
LMChatroomConfig is a class which is used to configure the chatroom
screen. It is used to customize the chatroom screen.
-
LMChatroomDetailsEvent
-
-
LMChatroomErrorState
-
-
LMChatroomEvent
-
-
LMChatroomLoadedState
-
-
LMChatroomLoadingState
-
-
-
LMChatroomParticipantsPage
-
LMChatroomParticipantsPage is a page to display the participants of a chat room.
It uses LMChatParticipantsBloc to fetch the participants of a chat room.
-
LMChatroomScreen
-
Chatroom screen is the main screen where the user can chat with other users.
It has a chatroom list, chatroom bar, and chatroom menu.
-
LMChatroomSetting
-
LMChatroomSetting is a class which is used to configure the chatroom
screen. It is used to customize the chatroom screen.
-
LMChatroomState
-
-
LMChatroomStyle
-
LMChatroomStyle is a class which is used to style the chatroom
screen. It is used to customize the chatroom screen.
-
LMChatRoomViewData
-
LMChatRoomViewData
is a model class that holds the data for the chat room view.
This class is used to display the chat room information in the chat screen.
-
LMChatRoomViewDataBuilder
-
LMChatRoomViewDataBuilder
is a builder class that is used to create an instance of LMChatRoomViewData
.
This class is used to create an instance of LMChatRoomViewData
with the provided values.
-
LMChatRouteToUserProfileEvent
-
LMChatRouteToUserProfileEvent defines the event to route to user profile.
uuid of type String defines the uuid of the user.
context of type BuildContext defines the context to navigate to user profile.
-
LMChatRouteToUserProfileState
-
LMChatRouteToUserProfileState defines the state to route to user profile.
uuid of type String defines the uuid of the user.
context of type BuildContext defines the context to navigate to user profile.
-
LMChatSDKCallback
-
Abstract class for callback methods
To be implemented by the user of the SDK
And sent to the SDK while initializing
-
LMChatSDKCallbackImpl
-
Implementation of the LMChatSDKCallback
This class is used to handle the callback events from the core module
The core module will call the methods in this class when the corresponding events are triggered
-
LMChatSDKClientInfoViewData
-
LMChatSDKClientInfoViewData
is a model class that holds the data for the client info view.
This class is used to display the client information in the chat screen.
-
LMChatSearchConversationInChatroomEvent
-
Event responsible for searching conversations in a chatroom
-
LMChatSearchConversationInChatroomState
-
Search conversation state
-
LMChatSearchConversationScreen
-
-
LMChatServiceProvider
-
LMChatServiceProvider is a provider class to register all the dependencies
This class is a singleton class
This class should be used to register all the dependencies
This class should be used to get all the instances of
the dependencies of Service and Repository
This class should be used to get the callback instance
-
LMChatSetChatroomTopicEvent
-
-
LMChatShareChatroomUrlEvent
-
-
LMChatShowEmojiKeyboardEvent
-
-
LMChatShowEmojiKeyboardState
-
-
LMChatSkeletonAnimation
-
-
LMChatSkeletonAppBar
-
-
LMChatSkeletonChatBar
-
-
LMChatSkeletonChatBubble
-
-
LMChatSkeletonChatList
-
-
LMChatSkeletonChatPage
-
LMChatSkeletonChatPage is a skeleton screen for the chat page.
-
LMChatSkeletonChatroom
-
-
LMChatSkeletonChatroomList
-
-
LMChatSnackBar
-
-
LMChatSnackBarStyle
-
-
LMChatStateBubble
-
-
LMChatStateBubbleStyle
-
-
LMChatStringConstants
-
A class containing string constants used throughout the LikeMinds Chat application.
This class centralizes all string literals to maintain consistency and make updates easier.
It includes constants for:
-
LMChatTaggingHelper
-
-
LMChatTagViewData
-
LMChatTagViewData
is a model class that holds the data for the tag view.
This class is used to display the tag information in the chat screen.
-
LMChatTagViewDataBuilder
-
LMChatTagViewDataBuilder
is a builder class used to create an instance of LMChatTagViewData
.
This class is used to create an instance of LMChatTagViewData
with the provided values.
-
LMChatText
-
A simple text widget to be used throughout the Chat experience
-
LMChatTextField
-
A custom text field widget for chat applications with tagging functionality.
-
LMChatTextFieldStyle
-
-
LMChatTextSpan
-
A customizable TextSpan widget to be used throughout the Chat experience.
-
LMChatTextSpanStyle
-
Style class for LMChatTextSpan; used for customization.
-
LMChatTextStyle
-
Style class for LMChatText; used for customization
-
LMChatTheme
-
A class for manaing the theme of the entire chat experience
Use parameters to style, and custmise each aspect.
-
LMChatThemeData
-
-
LMChatTile
-
A widget to display a tile in the chat list
It can be used to display a chat room or a user in the chat list
It can be customized using the LMChatTileStyle using
style
property
extra properties can be passed using the leading
, title
, subtitle
and trailing
properties
-
LMChatTileStyle
-
-
LMChatTimeAgo
-
-
LMChatTimeAgoMessages
-
LookupMessages
template for any language
-
LMChatTimeMessages
-
English Messages
-
LMChatTimeShortMessages
-
English short Messages
-
LMChatUpdateConversationsEvent
-
Event responsible for updating the conversations of a chatroom
-
LMChatUserTile
-
LMChatUserTile is a LMChatTile that represents a user in a chat room.
-
LMChatUserViewData
-
A view data class to hold the user data.
-
LMChatUserViewDataBuilder
-
A builder class to build
LMUserViewData
-
LMChatVideo
-
A widget that displays a video in a chat interface.
-
LMChatVideoStyle
-
Configuration for the LMChatVideo widget's style.
-
LMChatVoiceNote
-
A widget to display and control audio playback in the LMChat UI.
The media parameter is required and contains the audio data.
-
LMChatVoiceNoteStyle
-
Defines the style properties for the LMChatAudio widget.
-
LMChatWebConfiguration
-
LMChatWebConfiguration to configure the web feed
maxWidth to set the maximum width of the feed
maxWidgetForDialog to set the maximum width of the widget for dialog
maxWidthForSnackBars to set the maximum width of the snack bars
-
LMChatWidgetBuilderDelegate
-
Delegate class for the widget builder.
-
LMChatWidgetViewData
-
LMWidgetViewData
is a data class that represents the data of a widget view.
This class is used to display the widget view in the chat screen.
-
To customize the community chat screen, create a class that extends
LMCommunityChatBuilderDelegate and override the methods.
Then pass the instance of this class to the LMCommunityChatConfig class,
which is used to configure the community chat screen.
-
LMCommunityChatConfig is a class which is used to configure the LMCommunityChatScreen
It is used to customize the LMCommunityChatScreen.
-
A style object to customize the look and feel of the home feed list
-
A widget that represents a List of Group Chatrooms on home
Talks to an instance of LMChatHomeFeedBloc, and updates accordingly
Allows for customizations to change the look and feel.
-
LMCommunityChatSetting is a class used to configure the Community Chat Screen
(LMCommunityChatScreen).
-
LMCommunityChatStyle is a class which is used to style the LMCommunityChatScreen
It is used to customize the LMCommunityChatScreen.
-
LMCommunityHybridChatBuilderDelegate is a class which is used to build the LMCommunityHybridChatScreen.
It is used to customize the LMCommunityHybridChatScreen.
To customize the LMCommunityHybridChatScreen, create a class that extends
LMCommunityHybridChatBuilderDelegate and override the methods.
Then pass the instance of this class to the LMCommunityHybridChatScreen class.
which is used to configure the LMCommunityHybridChatScreen.
-
LMCommunityHybridChatConfig is a class which is used to configure the LMCommunityHybridChatScreen
It is used to customize the LMCommunityHybridChatScreen.
-
LMCommunityHybridChatScreen is the main screen to enter LM Chat experience.
-
LMCommunityHybridChatSetting is a class which is used to configure the home
screen. It is used to customize the LMCommunityHybridChatScreen.
-
LMCommunityHybridChatStyle is a class which is used to style the home
screen. It is used to customize the LMCommunityHybridChatScreen.
-
LMDualSidePagedList<T>
-
A widget that displays a list of items that can be paginated from both sides.
-
A helper class to manage pagination for a list of items.
it is used in the LMDualSidePagedList widget.
-
LMNetworkingChatBuilderDelegate
-
LMNetworkingChatBuilderDelegate is a class which is used to build the home
screen. It is used to customize the LMNetworkingChatScreen.
To customize the LMNetworkingChatScreen, create a class that extends
LMNetworkingChatBuilderDelegate and override the methods.
Then pass the instance of this class to the LMNetworkingChatConfig class.
which is used to configure the LMNetworkingChatScreen.
-
LMNetworkingChatConfig
-
LMNetworkingChatConfig is a class which is used to configure the LMNetworkingChatScreen
It is used to customize the LMNetworkingChatScreen.
-
LMNetworkingChatListStyle
-
A style object to customize the look and feel of the DM Feed List
-
LMNetworkingChatScreen
-
A widget that represents a List of DM Chatrooms
Talks to an instance of LMChatDMFeedBloc, and updates accordingly
Allows for customizations to change the look and feel.
-
LMNetworkingChatSetting
-
LMNetworkingChatSetting is a class which is used to configure the LMNetworkingChatScreen
It is used to customize the LMNetworkingChatScreen.
-
LMNetworkingChatStyle
-
LMNetworkingChatStyle is a class which is used to style the LMNetworkingChatScreen
It is used to customize the LMNetworkingChatScreen.
-
LMReportContentWidget
-
A widget to display the report content
title - The title of the report content
description - The description of the report content
style - The style of the report content widget
-
LMReportContentWidgetStyle
-
Style for the report content widget
LMChatTextStyle - Style for the title
LMChatTextStyle - Style for the description
CrossAxisAlignment - Cross axis alignment
MainAxisAlignment - Main axis alignment
double - Spacing between title and description
EdgeInsets - Padding
EdgeInsets - Margin
-
LMReportScreenStyle
-
Style for the report screen
LMReportContentWidgetStyle - Style for the report content widget
LMChatButtonStyle - Style for the submit button
-
LMResponse<T>
-
-
LMSDKClientInfoViewDataBuilder
-
LMChatSDKClientInfoViewDataBuilder
is a builder class used to create an instance of LMChatSDKClientInfoViewData
.
This class is used to create an instance of LMChatSDKClientInfoViewData
with the provided values.
-
LMSearchBuilderDelegate
-
LMSearchBuilderDelegate is a class used to build and customize the search
screen. It provides methods to override default widgets and behaviors.
-
LMSearchConversationConfig
-
LMSearchConversationConfig is a class used to configure the search screen.
It provides options to customize the behavior, appearance, and structure
of the search screen.
-
LMSearchSetting
-
{@template search_setting}
LMSearchSetting is a class used to configure the search screen.
It provides options to customize the behavior, appearance, and structure
of the search screen.
-
LMSearchStyle
-
LMSearchStyle is a class which is used to style the search
screen. It is used to customize the search screen.
-
LMWidgetData
-
-
LMWidgetDataEntity
-
-
LMWidgetViewDataBuilder
-
LMWidgetViewDataBuilder
is a builder class used to create an instance of LMChatWidgetViewData
.
This class is used to create an instance of LMChatWidgetViewData
with the provided values.
-
LogoutRequest
-
-
LogoutRequestBuilder
-
-
MarkReadChatroomRequest
-
-
MarkReadChatroomRequestBuilder
-
-
MemberRight
-
-
MemberStateResponse
-
-
MemberStateResponseEntity
-
-
MuteChatroomRequest
-
-
MuteChatroomRequestBuilder
-
-
OgTags
-
-
OgTagsEntity
-
-
PlaybackProgress
-
Class to hold playback progress information
-
PollOption
-
-
PollOptionEntity
-
-
PostConversationRequest
-
-
PostConversationRequestBuilder
-
-
PostConversationResponse
-
-
PostConversationResponseEntity
-
-
PostPollConversationRequest
-
-
PostPollConversationRequestBuilder
-
-
PostPollConversationResponse
-
-
PostPollConversationResponseEntity
-
-
PostReportRequest
-
-
PostReportRequestBuilder
-
-
PutMediaRequest
-
-
PutMediaRequestBuilder
-
-
PutMediaResponse
-
-
PutMediaResponseEntity
-
-
PutReactionRequest
-
-
PutReactionRequestBuilder
-
-
Reaction
-
-
ReactionEntity
-
-
RefreshRequest
-
-
RefreshRequestBuilder
-
-
RefreshResponse
-
-
RefreshResponseEntity
-
-
RegisterDeviceRequest
-
-
RegisterDeviceRequestBuilder
-
-
ReportTag
-
-
ReportTagEntity
-
-
ScreenSize
-
Class to initialize the screen size
-
SDKClientInfo
-
-
SearchMemberRequestBuilder
-
-
SearchMembersRequest
-
-
SearchMembersResponse
-
-
SearchMembersResponseEntity
-
-
SendDMRequest
-
-
SendDMRequestBuilder
-
-
SendDMResponse
-
-
SendDMResponseEntity
-
-
SetChatroomTopicRequest
-
-
SetChatroomTopicRequestBuilder
-
-
ShareChatroomRequest
-
-
ShareChatroomRequestBuilder
-
-
SubmitPollRequest
-
-
SubmitPollRequestBuilder
-
-
TagRequestModel
-
-
TagRequestModelBuilder
-
-
TagResponseModel
-
-
TagResponseModelEntity
-
-
User
-
-
UserEntity
-
-
UserTag
-
-
UserTagEntity
-
-
ValidateUserRequest
-
-
ValidateUserRequestBuilder
-
-
ValidateUserResponse
-
-
ValidateUserResponseEntity
-
Functions
-
conversationToLocalTopicStateMessage(User loggedInUser, Conversation newTopic)
→ Conversation
-
Helps us handle the state message addition to the list locally on
new chatroom topic selection by creating it using the User and Conversation
params - User loggedInUser, Conversation newTopic
-
convertListToMapReaction(List<Reaction> reaction)
→ Map<String, List<Reaction>>
-
-
downloadFile({String? fileUrl, LMChatMediaModel? media})
→ Future<String>
-
Downloads a file from a URL and saves it locally
-
extractLinkAndEmailFromString(String text)
→ LinkifyElement?
-
-
-
fetchChatroomEventHandler(LMChatFetchChatroomEvent event, Emitter<LMChatroomState> emit)
→ void
-
Function to handle fetch Home Feed events,
emits appropriate state based on response,
and converts models to view data models
-
fetchConversationsEventHandler(LMChatFetchConversationsEvent event, Emitter<LMChatConversationState> emit)
→ dynamic
-
Handler responsible for fetching conversation event
-
fetchDMFeedEventHandler(LMChatFetchDMFeedEvent event, Emitter<LMChatDMFeedState> emit)
→ void
-
Function to handle fetch DM Feed events,
emits appropriate state based on response,
and converts models to view data models
-
fetchHomeFeedEventHandler(LMChatFetchHomeFeedEvent event, Emitter<LMChatHomeFeedState> emit)
→ void
-
Function to handle fetch Home Feed events,
emits appropriate state based on response,
and converts models to view data models
-
fireAnalyticsEventHandler(LMChatFireAnalyticsEvent event, Emitter<LMChatAnalyticsState> emit)
→ dynamic
-
fireAnalyticsEventHandler handles the event to fire an analytics event.
eventName
of type String defines the name of the event to be fired.
eventProperties
of type Map<String, dynamic> defines the properties
of the event to be fired.
-
getChatBubbleImage(LMChatAttachmentViewData mediaFile, {double? width, double? height, void onTap()?})
→ Widget
-
-
getChatItemAttachmentTile(String message, List<LMChatAttachmentViewData> mediaFiles, LMChatConversationViewData conversation, {String? prefix})
→ Widget
-
Builds a widget to display the attachment tiles for a chat item.
-
getChatroomTypes(LMChatroomType type)
→ List<int>
-
-
getDeletedText(LMChatConversationViewData conversation, LMChatUserViewData user)
→ String
-
-
getDeletedTextWidget(LMChatConversationViewData conversation, LMChatUserViewData user, {int? maxLines})
→ LMChatText
-
-
getDMChatroomPreviewMessage(LMChatConversationViewData conversation, LMChatUserViewData conversationUser, LMChatUserViewData chatroomUser, LMChatUserViewData chatroomWithUser)
→ String
-
-
getFileImageTile(LMChatAttachmentViewData mediaFile, {double? width, double? height})
→ Widget
-
-
getFileSizeInDouble(int bytes)
→ double
-
-
getFileSizeString({required int bytes, int decimals = 0})
→ String
-
-
getFirstValidLinkFromString(String text)
→ String
-
-
getGIFText(LMChatConversationViewData conversation)
→ String
-
-
getHeightOfWidget(GlobalKey<State<StatefulWidget>> widgetKey)
→ double?
-
Returns the height of the widget associated with the given GlobalKey.
-
getHomeChatroomPreviewMessage(LMChatConversationViewData conversation)
→ String
-
-
getImageFileMessage(BuildContext context, List<LMChatAttachmentViewData> mediaFiles, LMChatImageBuilder? imageBuilder)
→ Widget
-
-
getImageMessage(BuildContext context, List<LMChatAttachmentViewData>? conversationAttachments, LMChatImageBuilder? imageBuilder)
→ Widget
-
-
getInitials(String name)
→ String
-
Returns the initials of a given name.
-
getIsDMWithRequestEnabled()
→ bool
-
Get the isDMWithRequestEnabled flag from local preference
-
getPositionOfChatBubble(GlobalKey<State<StatefulWidget>> widgetKey)
→ Offset
-
Returns the global position of the chat bubble widget.
-
getStateSpace(LMChatSpace space)
→ String
-
Utility function to get a String representation of a LMChatSpace
-
getTime(String time)
→ String
-
-
getUserDMPrefixPreviewMessage(LMChatConversationViewData conversation, LMChatUserViewData conversationUser, LMChatUserViewData chatroomUser, LMChatUserViewData chatroomWithUser)
→ String
-
-
getUserHomePrefixPreviewMessage(LMChatConversationViewData conversation)
→ String
-
-
getVideoThumbnail(LMChatMediaModel media)
→ Future<File?>
-
-
getVideoThumbnailBytes(LMChatMediaModel media)
→ Future<Uint8List?>
-
-
getWidthOfWidget(GlobalKey<State<StatefulWidget>> widgetKey)
→ double?
-
Returns the width of the widget associated with the given GlobalKey.
-
groupConversationsAndAddDates(List<LMChatConversationViewData> conversations)
→ List<LMChatConversationViewData>
-
Return list of LMChatConversationViewData with LMChatConversationViewType top and bottom
based on the member id and date of the conversation
and add date conversation in between if the date is different
should be used when we are fetching the conversations for the first time, i.e page 1
-
handlePermissions(int mediaType)
→ Future<bool>
-
Media types:
1 - Photos
2 - Videos
3 - Microphone/Audio
-
initialiseConversationsEventHandler(LMChatInitialiseConversationsEvent event, Emitter<LMChatConversationState> emit)
→ dynamic
-
Handler for updating conversations in a chatroom
-
isOtherUserAIChatbot(LMChatRoomViewData chatroom)
→ bool
-
Checks if the other user in a DM chatroom is an AI Chatbot
-
localConversationEventHandler(LMChatLocalConversationEvent event, Emitter<LMChatConversationState> emit)
→ dynamic
-
Handler for updating conversations in a chatroom
-
mapLMChatSpacesToInt(LMChatSpace space)
→ int
-
Utility function to map a LMChatSpace to int
-
mapMediaTypeToString(LMChatMediaType mediaType)
→ String
-
Maps the LMChatMediaType to its corresponding string representation.
-
mapStringToMediaType(String mediaType)
→ LMChatMediaType
-
Maps the string representation of a media type to its corresponding LMChatMediaType.
-
parseAttachments(GetHomeFeedResponse response, LMChatRoomViewData chatroom)
→ LMChatRoomViewData
-
Function to parse attachments from the response object
-
parseChatroomUsers(GetHomeFeedResponse response, LMChatRoomViewData chatroom)
→ LMChatRoomViewData
-
Fucntion to parse chatroom users from response user meta
-
parseDMAttachments(GetHomeFeedResponse response, LMChatRoomViewData chatroom)
→ LMChatRoomViewData
-
Function to parse attachments from the response object
-
parseDMChatroomUsers(GetHomeFeedResponse response, LMChatRoomViewData chatroom)
→ LMChatRoomViewData
-
Fucntion to parse chatroom users from response user meta
-
parseDMHomeFeedToChatrooms(GetHomeFeedResponse response)
→ List<LMChatRoomViewData>
-
Function to parse response, and update child models
-
parseDMLastConversation(GetHomeFeedResponse response, LMChatRoomViewData chatroom)
→ LMChatRoomViewData
-
Function to parse the last conversation for this chatroom from conversationMeta
-
parseDMResponse(GetHomeFeedResponse response)
→ List<LMChatRoomViewData>
-
Function to parse the response object into List
-
parseHomeFeedToChatrooms(GetHomeFeedResponse response)
→ List<LMChatRoomViewData>
-
Function to parse response, and update child models
-
parseHomeResponse(GetHomeFeedResponse response)
→ List<LMChatRoomViewData>
-
Function to parse the response object into List
-
parseLastConversation(GetHomeFeedResponse response, LMChatRoomViewData chatroom)
→ LMChatRoomViewData
-
Function to parse the last conversation for this chatroom from conversationMeta
-
postConversationEventHandler(LMChatPostConversationEvent event, Emitter<LMChatConversationState> emit)
→ dynamic
-
Handler for managing post conversation event
-
postMultimediaConversationEventHandler(LMChatPostMultiMediaConversationEvent event, Emitter<LMChatConversationState> emit)
→ dynamic
-
Handler for managing post multimedia conversation event
-
postPollConversationHandler(LMChatPostPollConversationEvent event, dynamic emit)
→ void
-
Handler for posting a poll conversation
-
refreshDMFeedEventHandler(LMChatRefreshDMFeedEvent event, Emitter<LMChatDMFeedState> emit)
→ void
-
Function to handle fetch DM Feed events,
emits appropriate state based on response,
and converts models to view data models
-
refreshHomeFeedEventHandler(LMChatRefreshHomeFeedEvent event, Emitter<LMChatHomeFeedState> emit)
→ void
-
Function to handle fetch Home Feed events,
emits appropriate state based on response,
and converts models to view data models
-
storeIsDMWithRequestEnabled(bool isDMWithRequestEnabled)
→ Future<void>
-
Store the isDMWithRequestEnabled flag in local preference
-
updateConversationsEventHandler(LMChatUpdateConversationsEvent event, Emitter<LMChatConversationState> emit)
→ dynamic
-
Handler for updating conversations in a chatroom
-
Return list of LMChatConversationViewData with LMChatConversationViewType top and bottom
based on the member id and date of the conversation
and add date conversation in between if the date is different
should be used when we are fetching the conversations with page > 1
-
updateRealTimeConversationsViewType(LMChatConversationViewData newConversation, List<LMChatConversationViewData> oldConversations)
→ List<LMChatConversationViewData>
-
Return list of LMChatConversationViewData with LMChatConversationViewType top and bottom
based on the member id and date of the conversation
and add date conversation in between if the date is different
should be used when a new conversation is being added to the list
Typedefs
-
ItemBuilder<T>
= Widget Function(BuildContext context, T item, int index)
-
A builder function that builds a widget for an item in the list.
The
context
is the build context.
The item
is the item to build the widget for.
The index
is the index of the item in the list.
-
LMChatAppBarBuilder
= LMChatAppBar Function(LMChatAppBar oldAppBar)
-
The app bar builder function for the any screen.
This function is called to build the app bar for the chat screen.
The LMChatAppBarBuilder function takes one parameter:
-
LMChatBubbleBuilder
= Widget Function(LMChatConversationViewData conversation, LMChatUserViewData user, LMChatBubble oldBubble)
-
this function is called to build the chat bubble for the chat screen.
The LMChatBubbleBuilder function takes three parameters:
-
LMChatBubbleContentBuilder
= Widget Function(LMChatConversationViewData conversation)
-
-
LMChatButtonBuilder
= Widget Function(LMChatButton olButton)
-
The button builder function for the chat.
This function is called to build the button for the chat.
The LMChatButtonBuilder function takes one parameter:
-
LMChatContextWidgetBuilder
= Widget Function(BuildContext context)
-
The context widget builder function for the chat screen.
This function is called to build the context widget for the chat screen.
The LMChatContextWidgetBuilder function takes one parameter:
-
LMChatDocumentPreviewBuilder
= Widget Function(BuildContext context, LMChatAttachmentViewData attachment, LMChatDocumentPreview oldWidget)
-
The document widget builder function for the chat screen.
This function is called to build the document widget for the chat screen.
The LMChatDocumentPreviewBuilder function takes three parameters:
-
LMChatDocumentThumbnailBuilder
= Widget Function(BuildContext context, LMChatAttachmentViewData attachment, LMChatDocumentThumbnail oldWidget)
-
The document thumbnail widget builder function for the chat screen.
This function is called to build the document thumbnail widget for the chat screen.
The LMChatDocumentThumbnailBuilder function takes three parameters:
-
LMChatDocumentTileBuilder
= Widget Function(BuildContext context, LMChatAttachmentViewData attachment, LMChatDocumentTile oldWidget)
-
The document tile widget builder function for the chat screen.
This function is called to build the document tile widget for the chat screen.
The LMChatDocumentTileBuilder function takes three parameters:
-
LMChatDocumentTilePreviewBuilder
= Widget Function(BuildContext context, LMChatAttachmentViewData attachment, LMChatDocumentTilePreview oldWidget)
-
The document widget builder function for the chat screen.
This function is called to build the document widget for the chat screen.
The LMChatDocumentPreviewBuilder function takes three parameters:
-
LMChatErrorHandler
= dynamic Function(String, StackTrace)
-
The error handler function for the chat.
This function is called when an error occurs in the chat.
The LMChatErrorHandler function takes two parameters:
-
LMChatGIFBuilder
= Widget Function(BuildContext context, LMChatAttachmentViewData attachment, LMChatGIF oldWidget)
-
The gif widget builder function for the chat screen.
This function is called to build the gif widget for the chat screen.
The LMChatGIFBuilder function takes three parameters:
-
LMChatHomeAppBarBuilder
= LMChatAppBar Function(LMChatUserViewData currentUser, LMChatAppBar oldAppBar)
-
The app bar builder function for the chat home screen.
This function is called to build the app bar for the chat home screen.
The LMChatHomeAppBarBuilder function takes two parameters:
-
LMChatIconBuilder
= Widget Function(BuildContext context, LMChatIcon icon)
-
The icon builder function for the chat screen.
This function is called to build the icon for the chat screen.
The LMChatIconBuilder function takes two parameters:
-
LMChatImageBuilder
= Widget Function(BuildContext context, LMChatAttachmentViewData attachment, LMChatImage oldWidget)
-
The image widget builder function for the chat screen.
This function is called to build the image widget for the chat screen.
The LMChatImageBuilder function takes three parameters:
-
LMChatPollBuilder
= Widget Function(BuildContext context, LMChatPoll poll, LMChatConversationViewData conversation)
-
The poll builder function for the chat screen.
This function is called to build the poll for the chat screen.
The LMChatPollBuilder function takes three parameters:
-
LMChatProfilePictureBuilder
= Widget? Function(BuildContext context, LMChatProfilePicture? profilePicture)
-
The profile picture builder function for the chat screen.
This function is called to build the profile picture for the chat screen.
The LMChatProfilePictureBuilder function takes two parameters:
-
LMChatroomAppBarBuilder
= LMChatAppBar Function(LMChatRoomViewData chatrooom, LMChatAppBar oldAppBar)
-
The tile builder function for the chat home screen.
This function is called to build the tile for the chat home screen.
The
LMChatHomeTileBuilder
function takes two parameters:
-
LMChatroomChatBarBuilder
= Widget Function(LMChatRoomViewData chatroom, Function onMessageSent)
-
The chat bar builder function for the chat room screen.
This function is called to build the chat bar for the chat room screen.
The LMChatroomChatBarBuilder function takes two parameters:
-
LMChatroomTileBuilder
= LMChatTile Function(LMChatRoomViewData chatroom, LMChatTile oldTile)
-
The tile builder function for the chat room screen.
This function is called to build the tile for the chat room screen.
The LMChatroomTileBuilder function takes two parameters:
-
LMChatStateBubbleBuilder
= Widget Function(String message, LMChatStateBubble oldStateBubble)
-
The state bubble builder function for the chat screen.
This function is called to build the state bubble for the chat screen.
The LMChatStateBubbleBuilder function takes two parameters:
-
LMChatTextBuilder
= Widget Function(BuildContext, LMChatText)
-
The text builder function for the chat screen.
This function is called to build the text for the chat screen.
The LMChatTextBuilder function takes two parameters:
-
LMChatUserTileBuilder
= Widget Function(BuildContext context, LMChatUserViewData user, LMChatUserTile oldUserTile)
-
The tile builder function for the chat screen.
This function is called to build the tile for the chat screen.
The
LMChatTileBuilder
function takes two parameters:
-
LMChatVideoBuilder
= Widget Function(BuildContext context, LMChatAttachmentViewData attachment, LMChatVideo oldWidget)
-
The video widget builder function for the chat screen.
This function is called to build the video widget for the chat screen.
The LMChatVideoBuilder function takes three parameters:
-
LMChatVoiceNoteBuilder
= Widget Function(BuildContext context, LMChatAttachmentViewData attachment, LMChatVoiceNote oldWidget)
-
The voice note widget builder function for the chat screen.
This function is called to build the voice note widget for the chat screen.
The LMChatVoiceNoteBuilder function takes three parameters:
-
LMContextWidgetBuilder
= Widget Function(BuildContext context)
-
The context widget builder function for the chat screen.
This function is called to build the context widget for the chat screen.
The LMContextWidgetBuilder function takes one parameter: