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 _channel.invokeMethod<void>(
    'setVolume',
    <String, dynamic>{
      'textureId': textureId,
      'volume': volume,
    },
  );
}