Remove the last page in the stack and add the one with this path
path
Future<void> replaceLast(String path) => navigator.replaceLast(path);