up static method

Future<double?> up({
  1. double step = _defaultStep,
})

increase system volume by step, step must be in range 0.0, 1.0. return the system volume value after increase. the return volume value may be not equals to the current volume + step.

Implementation

static Future<double?> up({double step = _defaultStep}) {
  if (step < 0.0 || step > 1.0) {
    return Future.error(
        ArgumentError.value(step, "step must in range [0.0, 1.0]"));
  } else {
    return FijkPlugin._channel
        .invokeMethod("volumeUp", <String, dynamic>{'step': step});
  }
}