goToChatHistoryPage<T extends Object?> function
Future<T?>
goToChatHistoryPage<T extends Object?>(
- BuildContext context,
- String conversationId,
- NIMConversationType type
跳转到聊天历史记录页面
Implementation
Future<T?> goToChatHistoryPage<T extends Object?>(
BuildContext context, String conversationId, NIMConversationType type) {
if (IMKitRouter.instance.enableGoRouter) {
return context.pushNamed(RouterConstants.PATH_CHAT_HISTORY_PAGE, extra: {
'conversationId': conversationId,
'conversationType': type,
});
}
return Navigator.pushNamed(context, RouterConstants.PATH_CHAT_HISTORY_PAGE,
arguments: {
'conversationId': conversationId,
'conversationType': type,
});
}