setGain method
Sets the input recording gain (sensitivity) (0.0 to 1.0).
Implementation
Future<bool> setGain(double gain) {
if (gain < 0.0 || gain > 1.0) {
throw ArgumentError.value(
gain,
'gain',
'Gain must be between 0.0 and 1.0.',
);
}
return NexoraSdkPlatform.instance.setAudioGain(gain);
}