isValidSampleRate function

bool isValidSampleRate(
  1. double? sampleRate
)

Implementation

bool isValidSampleRate(double? sampleRate) {
  if (sampleRate == null) {
    return false;
  }
  return !sampleRate.isNaN && sampleRate >= 0.0 && sampleRate <= 1.0;
}