setVolume method

void setVolume(
  1. double volume
)

you can use the volume property on nodes to control the volume.

Note: volume value range from 0.0 to 1.0

Refer audio share setVolume guide here

Implementation

void setVolume(double volume) async {
  await PlatformService.invokeMethod(PlatformMethod.setAudioShareVolume,
      arguments: {"name": methodName, "volume": volume});
}