AVAudioSessionDataSourceDescription constructor Null safety

AVAudioSessionDataSourceDescription(
  1. {required MethodChannel channel,
  2. required int id,
  3. required String name,
  4. required AVAudioSessionLocation? location,
  5. required AVAudioSessionOrientation? orientation,
  6. required AVAudioSessionPolarPattern? selectedPolarPattern,
  7. required List<AVAudioSessionPolarPattern>? supportedPolarPatterns,
  8. required AVAudioSessionPolarPattern? preferredPolarPattern}
)

Implementation

AVAudioSessionDataSourceDescription({
  required MethodChannel channel,
  required this.id,
  required this.name,
  required this.location,
  required this.orientation,
  required this.selectedPolarPattern,
  required this.supportedPolarPatterns,
  required AVAudioSessionPolarPattern? preferredPolarPattern,
}) : /*_channel = channel,*/
      _preferredPolarPattern = preferredPolarPattern;