handlePollMessages method
void
handlePollMessages(
- String messageType,
- dynamic map
)
Implementation
void handlePollMessages(String messageType, map) {
switch (messageType){
case "poll-response":
updatePollData(map['message'], false, false);
break;
case "poll-start":
selectedOptionValue.value='';
selectedOptionKey.value='';
addOptions(map);
Future.delayed(const Duration(milliseconds: 500), () {
showPollingAnswerDialog(context, this,map);
});
break;
case "poll-extend":
//pausePollTimer();
//resumeTimer();
extendTimer(10);
break;
case "poll-stop":
if(isAnswerDialogOpen.value){
Get.back();
}
break;
case "poll-data":
Future.delayed(const Duration(milliseconds: 500), () {
showPollingResultDialog(context, this,map);
});
break;
}
}