init static method
dynamic
init()
Implementation
static init() {
IMKitRouter.instance.registerRouter(
RouterConstants.PATH_CHAT_PAGE,
(context) => ChatPage(
sessionId:
IMKitRouter.getArgumentFormMap<String>(context, 'sessionId')!,
sessionType: IMKitRouter.getArgumentFormMap<NIMSessionType>(
context, 'sessionType')!,
anchor:
IMKitRouter.getArgumentFormMap<NIMMessage>(context, 'anchor'),
));
IMKitRouter.instance.registerRouter(
RouterConstants.PATH_CHAT_SEARCH_PAGE,
(context) => ChatSearchPage(
IMKitRouter.getArgumentFormMap<String>(context, 'teamId')!));
}