getMaxVol static method
Returns max volume for a streamType
int notificationMaxVol = await RealVolume.getMaxVol(StreamType.NOTIFICATION);
Implementation
static Future<int?> getMaxVol(StreamType? streamType) async {
final int? version = await _methodChannel.invokeMethod('getMaxVol',
{'streamType': streamType?.index ?? StreamType.MUSIC.index});
return version;
}