yFinish method

void yFinish({
  1. bool pop = true,
})

Implementation

void yFinish({bool pop = true}) {
  for (var i = yPages.length - 1; i >= 0; i--) {
    if (yPages[i] == yPage) {
      yPages.removeAt(i);
      if (pop) {
        Navigator.pop(yPage.context);
        yBroadcast_unregisters();
      }
      break;
    }
  }
}