validateIOS method
void
validateIOS()
Implementation
void validateIOS() {
const invalidMsg =
'Invalid AudioContextConfig: On iOS it is not possible to set';
const tip = 'Please create a custom [AudioContextIOS] if the generic flags '
'cannot represent your needs.';
assert(
!(respectSilence && focus == AudioContextConfigFocus.duckOthers),
'$invalidMsg `respectSilence` and `duckOthers`. $tip',
);
assert(
!(respectSilence && focus == AudioContextConfigFocus.mixWithOthers),
'$invalidMsg `respectSilence` and `mixWithOthers`. $tip',
);
assert(
!(respectSilence && route == AudioContextConfigRoute.speaker),
'$invalidMsg `respectSilence` and route `speaker`. $tip',
);
}