popToMessagesView static method
返回到联系人列表页面,如果没找到,则返回根页面
Implementation
static void popToMessagesView(
BuildContext context, {
ChatUIKitRouteBackModel? model,
}) {
_lastBackModel = model;
Navigator.of(context).popUntil((route) {
chatPrint('route.settings.name: ${route.settings.toString()}');
return route.settings.name == ChatUIKitRouteNames.messagesView ||
route.isFirst;
});
}