setMaxHistory static method
Set maximum history entries
Implementation
static void setMaxHistory(int max) {
_maxHistory = max;
if (_history.length > _maxHistory) {
_history.removeRange(0, _history.length - _maxHistory);
}
}
Set maximum history entries
static void setMaxHistory(int max) {
_maxHistory = max;
if (_history.length > _maxHistory) {
_history.removeRange(0, _history.length - _maxHistory);
}
}