Survey constructor
Survey({
- required int surveyID,
- required SurveyQuestion surveyQuestion,
- required List<
SurveyAnswer> surveyOptions, - required User surveyOwner,
- required bool surveyStatus,
- required double surveyvotingPercentage,
- required int surveyvotingCount,
- required bool didIVote,
- required int selectedOption,
- required String surveyEndDate,
- 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,
});