setVolume static method

void setVolume(
  1. double volume
)

Set Volume Range from 0 to 1

Implementation

static void setVolume(double volume) async {
  await _channel
      .invokeMethod("setVolume", <String, dynamic>{"volume": volume});
}