setVolumeOfEffect method

  1. @override
Future<void> setVolumeOfEffect(
  1. int soundId,
  2. double volume
)

Sets the volume of a specified audio effect.

Parameter soundId ID of the audio effect. Each audio effect has a unique ID.

Parameter volume Volume of the audio effect. The value ranges between 0.0 and 100.0 (default).

Implementation

@override
Future<void> setVolumeOfEffect(int soundId, double volume) {
  return _invokeMethod(
      'setVolumeOfEffect', {'soundId': soundId, 'volume': volume});
}