popToRoot static method

dynamic popToRoot(
  1. BuildContext context, {
  2. ChatUIKitRouteBackModel? model,
})

返回到根页面

Implementation

static popToRoot(
  BuildContext context, {
  ChatUIKitRouteBackModel? model,
}) {
  _lastBackModel = model;
  Navigator.of(context).popUntil((route) => route.isFirst);
}