setHistoryLimit method
Set history limit
Implementation
void setHistoryLimit(int limit) {
_historyLimit = limit;
while (_actionHistory.length > _historyLimit) {
_actionHistory.removeAt(0);
}
}
Set history limit
void setHistoryLimit(int limit) {
_historyLimit = limit;
while (_actionHistory.length > _historyLimit) {
_actionHistory.removeAt(0);
}
}