getVol static method

Future<double> getVol()

get the current system volume. the range of returned value is 0.0, 1.0.

Implementation

static Future<double> getVol() async {
  var vol = await FplayerPlatform.instance.systemVolume();
  if (vol != null) return Future.value(vol);
  return Future.value(0);
}