PollModalOptions constructor

PollModalOptions({
  1. required bool isPollModalVisible,
  2. required VoidCallback onClose,
  3. String position = 'topRight',
  4. Color backgroundColor = const Color(0xFFF5F5F5),
  5. required String member,
  6. required String islevel,
  7. required List<Poll> polls,
  8. Poll? poll,
  9. Socket? socket,
  10. required String roomName,
  11. ShowAlert? showAlert,
  12. required ValueChanged<bool> updateIsPollModalVisible,
  13. required HandleCreatePollType handleCreatePoll,
  14. required HandleEndPollType handleEndPoll,
  15. required HandleVotePollType handleVotePoll,
  16. PollModalStyleOptions? styles,
  17. Widget? previousPollsHeader,
  18. Widget? createPollHeader,
  19. Widget? currentPollHeader,
  20. Widget? emptyPreviousPollsPlaceholder,
  21. Widget? emptyCurrentPollPlaceholder,
  22. bool isDarkMode = false,
  23. bool enableGlassmorphism = false,
  24. ModalRenderMode renderMode = ModalRenderMode.modal,
})

Implementation

PollModalOptions({
  required this.isPollModalVisible,
  required this.onClose,
  this.position = 'topRight',
  this.backgroundColor = const Color(0xFFF5F5F5),
  required this.member,
  required this.islevel,
  required this.polls,
  this.poll,
  this.socket,
  required this.roomName,
  this.showAlert,
  required this.updateIsPollModalVisible,
  required this.handleCreatePoll,
  required this.handleEndPoll,
  required this.handleVotePoll,
  this.styles,
  this.previousPollsHeader,
  this.createPollHeader,
  this.currentPollHeader,
  this.emptyPreviousPollsPlaceholder,
  this.emptyCurrentPollPlaceholder,
  this.isDarkMode = false,
  this.enableGlassmorphism = false,
  this.renderMode = ModalRenderMode.modal,
});