getSourceSettings method Null safety

Future<void> getSourceSettings(
  1. String sourceName,
  2. String? sourceType
)

Get settings of the specified source

Implementation

Future<void> getSourceSettings(String sourceName, String? sourceType) async {
  final response =
      await command('GetSourceSettings', {'sourceName': sourceName});

  if (response == null) {
    throw Exception('Problem getting audio response');
  }
}