getCurrentScene method Null safety

Future<Scene> getCurrentScene()

Get the current scene's name and source items. Returns a Scene object.

Implementation

Future<Scene> getCurrentScene() async {
  final response = await command('GetCurrentScene');

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

  return Scene.fromJson(response.rawResponse);
}