volume property

  1. @override
Future<int> volume

Returns the player's current volume, an integer between 0 and 100. Note that it will return the volume even if the player is muted.

Implementation

@override
Future<int> get volume async {
  final volume = await _runWithResult('getVolume');

  return int.tryParse(volume) ?? 0;
}