setStreamVolume method Null safety

Future<void> setStreamVolume(
  1. AndroidStreamType streamType,
  2. int index,
  3. AndroidAudioVolumeFlags flags
)

(UNTESTED)

Implementation

Future<void> setStreamVolume(AndroidStreamType streamType, int index,
    AndroidAudioVolumeFlags flags) async {
  await _channel.invokeMethod(
      'setStreamVolume', [streamType.index, index, flags.value]);
}