i am trying to use the navigator's popUntil method to exit my app so i was thinking if there was a way to pop all previous pages including the firstPage/route and cause the app to exit at this point. e.g The following code would pop all pages until firstPage which is my base route but how do i pop this page too.
Navigator.popUntil(context, ModalRoute.withName('/firstPage'));