VideoTriggerEvent.singleChoice constructor

VideoTriggerEvent.singleChoice(
  1. String sessionId,
  2. String choiceCode
)

Implementation

factory VideoTriggerEvent.singleChoice(
  String sessionId,
  String choiceCode,
) =>
    VideoTriggerEvent(
      time: DateTime.now(),
      type: VideoTriggerEvents.answer,
      sessionId: sessionId,
      args: <String, dynamic>{
        'answer': choiceCode,
      },
    );