📜  使用命名路由推送删除直到 - 无论代码示例

📅  最后修改于: 2022-03-11 14:58:24.687000             🧑  作者: Mango

代码示例1
_navPaymentSuccessful(){
    Navigator.pushAndRemoveUntil(
      context, 
      MaterialPageRoute(
        builder: (context) => PaymentSuccessful()
      ), 
     ModalRoute.withName("/Home")
    );
  }