setHistoryLimit method

void setHistoryLimit(
  1. int limit
)

Set history limit

Implementation

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