setEnabled method Null safety

Future<void> setEnabled(
  1. bool enabled
)

Set the enabled status of this audio effect.

Implementation

Future<void> setEnabled(bool enabled) async {
  _enabledSubject.add(enabled);
  if (_active) {
    await (await _player!._platform).audioEffectSetEnabled(
        AudioEffectSetEnabledRequest(type: _type, enabled: enabled));
  }
}