removeLastFromHistory method
Removes the last HistoryElement from history and returns it.
Implementation
HistoryElement? removeLastFromHistory() {
if (history.isEmpty) {
return null;
}
return history.removeLast();
}
Removes the last HistoryElement from history and returns it.
HistoryElement? removeLastFromHistory() {
if (history.isEmpty) {
return null;
}
return history.removeLast();
}