popToPage function

dynamic popToPage(
  1. Widget page
)

Implementation

popToPage(Widget page) {
  navGK.currentState?.popUntil(ModalRoute.withName('$page'));
}