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}
)

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,
});