Polls.viewPolls constructor
const
Polls.viewPolls({
- Key? key,
- required List children,
- required Text question,
- int? userChoice,
- TextStyle? leadingPollStyle,
- TextStyle pollStyle = const TextStyle(),
- Color backgroundColor = Colors.blue,
- Color? leadingBackgroundColor = Colors.blueAccent,
- Color? onVoteBackgroundColor = Colors.blueGrey,
- 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;