QuestionModel constructor
QuestionModel({})
Implementation
QuestionModel({
required String pollId,
required String questionTitle,
int totalPollCount = 0,
String status = "",
String timeStamp = "",
String confNumber = "",
int duration = 0,
String type = "",
required String pollConst,
}) : _pollId = pollId,
_questionTitle = questionTitle,
_totalPollCount = totalPollCount,
_status = status.obs, // Initialize with .obs
_timeStamp = timeStamp,
_confNumber = confNumber,
_duration = duration,
_type = type,
_pollConst = pollConst;