onRepliesListBottom method
Implementation
onRepliesListBottom(User? user, Group? group, CometChatTheme? theme) async {
Map<String, dynamic>? apiMap;
if (configuration != null && configuration?.apiConfiguration != null) {
apiMap = await configuration?.apiConfiguration!(user, group);
}
Map<String, dynamic> id = {};
String receiverId = "";
if (user != null) {
receiverId = user.uid;
id['uid'] = receiverId;
} else if (group != null) {
receiverId = group.guid;
id['guid'] = receiverId;
}
CometChatUIEvents.showPanel(
id,
CustomUIPosition.composerTop,
(context) => AIConversationStarterView(
aiConversationStarterStyle: configuration?.conversationStarterStyle,
theme: configuration?.theme ?? theme ?? cometChatTheme,
user: user,
group: group,
emptyStateText: configuration?.emptyStateText,
errorStateText: configuration?.errorStateText,
customView: configuration?.customView,
loadingStateText: configuration?.loadingStateText,
emptyIconUrl: configuration?.emptyIconUrl,
loadingStateView: configuration?.loadingStateView,
loadingIconUrl: configuration?.loadingIconUrl,
errorStateView: configuration?.errorStateView,
emptyStateView: configuration?.errorStateView,
errorIconUrl: configuration?.errorIconUrl,
apiConfiguration: apiMap,
),
);
}