init static method

dynamic init()

Implementation

static init() {
  IMKitRouter.instance.registerRouter(
      RouterConstants.PATH_CONTACT_PAGE, (context) => ContactPage());

  IMKitRouter.instance.registerRouter(
      RouterConstants.PATH_CONTACT_SELECTOR_PAGE,
      (context) => ContactKitSelectorPage(
            mostSelectedCount:
                IMKitRouter.getArgumentFormMap<int>(context, 'mostCount'),
            filterUsers: IMKitRouter.getArgumentFormMap<List<String>>(
                context, 'filterUser'),
            returnContact: IMKitRouter.getArgumentFormMap<bool>(
                context, 'returnContact'),
          ));

  IMKitRouter.instance.registerRouter(
    RouterConstants.PATH_USER_INFO_PAGE,
    (context) => ContactKitDetailPage(
      accId: IMKitRouter.getArgumentFormMap<String>(context, 'accId')!,
    ),
  );

  IMKitRouter.instance.registerRouter(
    RouterConstants.PATH_MY_BLACK_PAGE,
    (context) => ContactKitBlackListPage(),
  );

  IMKitRouter.instance.registerRouter(
      RouterConstants.PATH_MY_TEAM_PAGE,
      (context) => ContactKitTeamListPage(
            selectorModel: IMKitRouter.getArgumentFormMap<bool>(
                context, 'selectorModel'),
          ));

  IMKitRouter.instance.registerRouter(
    RouterConstants.PATH_MY_NOTIFICATION_PAGE,
    (context) => ContactKitSystemNotifyMessagePage(),
  );
}