getMode method Null safety

Future<AndroidAudioHardwareMode> getMode()

(UNTESTED)

Implementation

Future<AndroidAudioHardwareMode> getMode() async {
  return decodeMapEnum(AndroidAudioHardwareMode.values,
      (await _channel.invokeMethod<int>('getMode'))!);
}