save method

  1. @override
bool save(
  1. T model
)
override

Implementation

@override
bool save(T model) {
  if(_bucket.length >= maxCount) {
    _bucket.removeFirst();
  }
  _bucket.add(model);
  return true;
}