decreaseFrequency method

Future<void> decreaseFrequency({
  1. double step = 1,
})

Implementation

Future<void> decreaseFrequency({double step = 1}) async {
  double newFreq = currentFreq.value - step;
  if(newFreq > 0) await setFrequency(newFreq);
}