attach method
Registers the controller to a slider with the given extent and marks.
A controller can only be attached to a single slider at a time.
Implementation
@override
@internal
void attach(double extent, List<FSliderMark> _) {
final proposed = ContinuousSelection(
step: stepPercentage,
mainAxisExtent: extent,
extent: selection.extent,
offset: selection.offset,
);
if (_selection == null) {
_selection = proposed; // We don't want to notify listeners when performing initialization.
} else {
selection = proposed;
}
}