getMaxLevel method

Future<int> getMaxLevel(
  1. AudioVolumeType type
)

Gets the maximum volume level for type.

Implementation

Future<int> getMaxLevel(AudioVolumeType type) async {
  final int? level = await AudioManager._channel.invokeMethod<int>(
    'getMaxLevel',
    <String, String>{'type': type.name},
  );
  return level!;
}