goBack method
Steps back one level in the NavStack history
Implementation
bool goBack() {
if (history.length > 1) {
String prevPath = history[history.length - 2];
history..removeLast()..removeLast(); // remove last 2 history entries
path = prevPath; // switch, adding a new history entry
return true;
}
return false;
}