Survey constructor

Survey({
  1. required int surveyID,
  2. required SurveyQuestion surveyQuestion,
  3. required List<SurveyAnswer> surveyOptions,
  4. required User surveyOwner,
  5. required bool surveyStatus,
  6. required double surveyvotingPercentage,
  7. required int surveyvotingCount,
  8. required bool didIVote,
  9. required int selectedOption,
  10. required String surveyEndDate,
  11. required String surveyRemainingTime,
})

Implementation

Survey({
  required this.surveyID,
  required this.surveyQuestion,
  required this.surveyOptions,
  required this.surveyOwner,
  required this.surveyStatus,
  required this.surveyvotingPercentage,
  required this.surveyvotingCount,
  required this.didIVote,
  required this.selectedOption,
  required this.surveyEndDate,
  required this.surveyRemainingTime,
});