filterRange property

Range get filterRange

Get filterRange

Implementation

Range get filterRange {
  return _range;
}
set filterRange (Range value)

Set range to be filtered.

Implementation

set filterRange(Range value) {
  value = _updateFilterRange(value);
  _range = value;

  _innerList.clear();

  for (int i = value.column; i <= value.lastColumn; i++) {
    _innerList.add(_AutoFilterImpl(this, _worksheet, _topRow, _bottomRow));

    final _AutoFilterImpl filter =
        _innerList[_innerList.length - 1] as _AutoFilterImpl;

    filter._colIndex = i;
  }
}