Poll constructor
Poll({
- required String id,
- required String question,
- required List<
PollOption> options, - required int totalVoterCount,
- required bool isClosed,
- required bool isAnonymous,
- required String type,
- required bool allowsMultipleAnswers,
- int? correctOptionId,
- String? explanation,
- List<
MessageEntity> ? explanationEntities, - int? openPeriod,
- int? closeDate,
Implementation
Poll({
required this.id,
required this.question,
required this.options,
required this.totalVoterCount,
required this.isClosed,
required this.isAnonymous,
required this.type,
required this.allowsMultipleAnswers,
this.correctOptionId,
this.explanation,
this.explanationEntities,
this.openPeriod,
this.closeDate,
});