Polls.creator constructor

const Polls.creator({
  1. Key? key,
  2. required List children,
  3. required Text question,
  4. TextStyle? leadingPollStyle,
  5. TextStyle pollStyle = const TextStyle(),
  6. Color backgroundColor = Colors.blue,
  7. Color? leadingBackgroundColor = Colors.blueAccent,
  8. Color? onVoteBackgroundColor = Colors.blueGrey,
  9. bool allowCreatorVote = false,
})

This creates view for the creator of the polls

Implementation

const Polls.creator(
    {super.key, required this.children,
      required this.question,
      this.leadingPollStyle,
      this.pollStyle = const TextStyle(),
      this.backgroundColor = Colors.blue,
      this.leadingBackgroundColor = Colors.blueAccent,
      this.onVoteBackgroundColor = Colors.blueGrey,
      this.allowCreatorVote = false})
    : viewType = PollsType.creator,
      onVote = null,
      userChoice = null,
      highest = null,
      getHighest = null,
      voteData = null,
      currentUser = null,
      creatorID = null,
      getTotal = null,
      iconColor = null,
      outlineColor = Colors.transparent,
      assert(children != null),
      assert(question != null);