getMaxVol static method

Future<int?> getMaxVol(
  1. StreamType? streamType
)

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;
}