reset method

  1. @override
void reset()
override

Resets the controller to its initial state.

Implementation

@override
void reset() {
  if (_selection case final selection?) {
    this.selection = ContinuousSelection(
      step: stepPercentage,
      mainAxisExtent: selection.rawExtent.total,
      extent: _initialSelection.extent,
      offset: _initialSelection.offset,
    );
  }
}