addShow method

String addShow(
  1. DomeManifest manifest
)

Adds a show from a .dome manifest (kind show / bundle); returns its id.

Implementation

String addShow(DomeManifest manifest) {
  final j = manifest.toJson();
  _shows[manifest.meta.id] = _Show({
    'meta': j['meta'],
    'assets': j['assets'] ?? const <Object?>[],
    'show': j['show'],
  }, 1);
  return manifest.meta.id;
}