Polls.viewPolls constructor

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

this creates view for see polls result

Implementation

Polls.viewPolls(
    {required this.children,
    required this.question,
    this.userChoice,
    this.leadingPollStyle,
    this.pollStyle,
    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,
      assert(children != null),
      assert(question != null);