setVolume method

Future<void> setVolume (
  1. double volume
)

set current player volume

Implementation

Future<void> setVolume(double volume) async {
  try {
    await _channel.invokeMethod('setVolume', {'volume': volume});
  } catch (e) {
    print(e);
  }
}