increaseVolume method

  1. @override
Future<void> increaseVolume(
  1. double volume
)
override

Increases the volume of the audio.

This method sends a request to the platform to increase the volume of the currently playing audio to the specified volume level.

Implementation

@override
Future<void> increaseVolume(double volume) async {
  try {
    await methodChannel.invokeMethod<void>('increaseVolume', {'volume': volume});
  } on PlatformException catch (e) {
    throw PlatformException(code: e.code, message: e.message);
  }
}