void add(num value) { _buffer.add(value.toDouble()); if (_buffer.length > _maxSize) _buffer.sort(); }