getSceneItemProperties method Null safety

Future<SceneItemResponse> getSceneItemProperties(
  1. String? sceneName
)

Gets the scene specific properties of the specified source item. Coordinates are relative to the item's parent (the scene or group it belongs to).

Implementation

Future<SceneItemResponse> getSceneItemProperties(
  String? sceneName,
) async {
  final response =
      await command('GetSceneItemProperties', {'scene-name': sceneName});

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

  return SceneItemResponse.fromJson(response.rawResponse);
}