onChange property

void Function(double position)? onChange
final

If non-null, this callback is called as the button slides around with the current position of the panel. The position is a double between value and 1.0

Implementation

final void Function(double position)? onChange;