backCount static method
Goes back count pages.
Implementation
static void backCount(int count) {
final NavigatorState navigator = Navigator.of(context);
for (int i = 0; i < count && navigator.canPop(); i++) {
navigator.pop();
}
}
Goes back count pages.
static void backCount(int count) {
final NavigatorState navigator = Navigator.of(context);
for (int i = 0; i < count && navigator.canPop(); i++) {
navigator.pop();
}
}