onChanged property
Signature for a callback that report that a value was changed for a marker pointer.
This snippet shows how to call onChanged function in SfLinearGauge.
SfLinearGauge(
markerPointers: [
LinearShapePointer(
value: _pointerValue,
onChanged: (double value){
setState((){
_pointerValue = value;
})
}
)])
Implementation
@override
final ValueChanged<double>? onChanged;