Polls.viewPolls constructor

const Polls.viewPolls({
  1. Key? key,
  2. required List children,
  3. required Text question,
  4. int? userChoice,
  5. TextStyle? leadingPollStyle,
  6. TextStyle pollStyle = const TextStyle(),
  7. Color backgroundColor = Colors.blue,
  8. Color? leadingBackgroundColor = Colors.blueAccent,
  9. Color? onVoteBackgroundColor = Colors.blueGrey,
  10. Color? iconColor = Colors.black,
})

this creates view for see polls result

Implementation

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