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;
  }
}