onDialed property

void Function(double degrees, double percent, int stopNumber)? onDialed
final

Called when the dial is turned via the panning on the control ring.

The value passed to the callback is true if focus is gained by tap and is false if the focus is lost to do a second tap or tapping another dial.

Called with:

  • degrees - 0.0-360.0 - degrees of rotation of the indicator.
  • percent - 0.0-100.0 - percent rotation of the indicator.
  • stopNumber 0-numberOfStops - the stop number the indicator is at, 0 if stopCount < 1.

Implementation

final void Function(double degrees, double percent, int stopNumber)? onDialed;