Polls.creator constructor

const Polls.creator({
  1. Key? key,
  2. required List<PollOption> children,
  3. required Widget? question,
  4. TextStyle? leadingPollStyle,
  5. TextStyle? pollStyle,
  6. Color backgroundColor = Colors.blue,
  7. Color? voteCastedBackgroundColor = Colors.grey,
  8. Color? leadingBackgroundColor = Colors.blueAccent,
  9. Color? onVoteBackgroundColor = Colors.blueGrey,
  10. bool allowCreatorVote = false,
  11. double optionBarRadius = 16,
  12. double borderWidth = .25,
  13. double optionHeight = 35,
  14. double optionSpacing = 8,
})

This creates view for the creator of the polls

Implementation

const Polls.creator({
  Key? key,
  required this.children,
  required this.question,
  this.leadingPollStyle,
  this.pollStyle,
  this.backgroundColor = Colors.blue,
  this.voteCastedBackgroundColor = Colors.grey,
  this.leadingBackgroundColor = Colors.blueAccent,
  this.onVoteBackgroundColor = Colors.blueGrey,
  this.allowCreatorVote = false,
  this.optionBarRadius = 16,
  this.borderWidth = .25,
  this.optionHeight = 35,
  this.optionSpacing = 8,
})  : viewType = PollsType.creator,
      onVote = null,
      userChoice = null,
      highest = null,
      getHighest = null,
      voteData = null,
      currentUser = null,
      creatorID = null,
      getTotal = null,
      iconColor = null,
      onVoteBorderColor = Colors.transparent,
      voteCastedBorderColor = Colors.transparent,
      super(key: key);