setVolume method

Future setVolume(
  1. double vol
)

Implementation

Future setVolume(double vol) async {
  await _check();
  vol = vol.clamp(0.0, 1.0);
  super.value = super.value.copyWith(volume: vol);
  await _controller?.evaluateJavascript('set_volume($vol);');
}