Poll constructor
Poll(- {required int id,
- required String title,
- required int createdAt,
- required int updatedAt,
- required int closeAt,
- required PollStatus status,
- int? messageId,
- PollData? data,
- int voterCount = -1,
- List<PollOption> options = const [],
- String? createdBy,
- bool allowUserSuggestion = false,
- bool allowMultipleVotes = false,
- List<int>? votedPollOptionIds}
)
Implementation
Poll({
required this.id,
required this.title,
required this.createdAt,
required this.updatedAt,
required this.closeAt,
required this.status,
this.messageId,
this.data,
this.voterCount = -1,
this.options = const [],
this.createdBy,
this.allowUserSuggestion = false,
this.allowMultipleVotes = false,
this.votedPollOptionIds,
});