setVolume method

  1. @override
Future<void> setVolume(
  1. int textureId,
  2. double volume
)
override

Sets the volume to a range between 0.0 and 1.0.

Implementation

@override
Future<void> setVolume(int textureId, double volume) {
  return _api.setVolume(VolumeMessage()
    ..textureId = textureId
    ..volume = volume);
}