CreatePoll constructor

const CreatePoll({
  1. Key? key,
  2. String? title,
  3. String? user,
  4. String? group,
  5. dynamic onClose()?,
  6. int defaultAnswers = 2,
  7. String? questionPlaceholderText,
  8. String? answerPlaceholderText,
  9. String? answerHelpText,
  10. String? addAnswerText,
  11. Widget? deleteIcon,
  12. Widget? closeIcon,
  13. Widget? createPollIcon,
  14. CometChatTheme? theme,
  15. CreatePollsStyle? style,
})

Implementation

const CreatePoll(
    {super.key,
    this.title,
    this.user,
    this.group,
    this.onClose,
    this.defaultAnswers = 2,
    this.questionPlaceholderText,
    this.answerPlaceholderText,
    this.answerHelpText,
    this.addAnswerText,
    this.deleteIcon,
    this.closeIcon,
    this.createPollIcon,
    this.theme,
    this.style});