PollModalOptions constructor
PollModalOptions({
- required bool isPollModalVisible,
- required VoidCallback onClose,
- String position = 'topRight',
- Color backgroundColor = const Color(0xFFF5F5F5),
- required String member,
- required String islevel,
- required List<
Poll> polls, - Poll? poll,
- Socket? socket,
- required String roomName,
- ShowAlert? showAlert,
- required ValueChanged<
bool> updateIsPollModalVisible, - required HandleCreatePollType handleCreatePoll,
- required HandleEndPollType handleEndPoll,
- 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,
});