cue method

  1. @override
Future<void> cue(
  1. String cueId
)
override

Fires a cue.

Implementation

@override
Future<void> cue(String cueId) async {
  log.add('cue $cueId');
  final s = show?.value.value;
  if (s == null) return;
  show!.value.value = NmDomeShowData(
    id: s.id,
    title: s.title,
    duration: s.duration,
    playlists: s.playlists,
    tracks: s.tracks,
    markers: s.markers,
    cues: [for (final c in s.cues) c.id == cueId ? NmDomeCue(id: c.id, label: c.label, at: c.at, note: c.note, fired: true) : c],
  );
}