Poll constructor
const
Poll({
- required String id,
- required String question,
- required List<
PollOption> options, - required int totalVoterCount,
- required bool isClosed,
- required bool isAnonymous,
- required PollType type,
- required bool allowsMultipleAnswers,
- int? correctOptionId,
- String? explanation,
- List<
MessageEntity> ? explanationEntities, - int? openPeriod,
- int? closeDate,
- List<
MessageEntity> ? questionEntities,
Constructs a Poll object
Implementation
const 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,
this.questionEntities,
});