replaceTop method

  1. @override
void replaceTop(
  1. String path
)
override

Pop & Push (replace top of stack) Does not work on '/'

Implementation

@override
void replaceTop(String path) {
  if (navStack.length > 1) {
    navStack.removeLast();
  }
  push(path);
}