Polls.castVote constructor
const
Polls.castVote({})
this creates view for users to cast votes
Implementation
const Polls.castVote({super.key,
required this.children,
required this.question,
required this.onVote,
this.allowCreatorVote = false,
this.outlineColor = Colors.blue,
this.backgroundColor = Colors.blueGrey,
this.pollStyle = const TextStyle(),
}) : viewType = PollsType.voter,
userChoice = null,
highest = null,
getHighest = null,
getTotal = null,
iconColor = null,
voteData = null,
currentUser = null,
creatorID = null,
leadingBackgroundColor = null,
leadingPollStyle = null,
onVoteBackgroundColor = null,
assert(onVote != null),
assert(question != null),
assert(children != null);