SimplePoll<T extends Object> constructor
const
SimplePoll<T extends Object> ({
- Key? key,
- required Poll<
T> poll, - required PollVote<
T> ? vote, - required PollVoteChanged<
T> onVoteChanged, - PollVoteError? onVoteError,
- PollStyle style = const PollStyle(),
- PollLocale locale = PollLocale.en,
- WidgetBuilder? titleBuilder,
Implementation
const SimplePoll({
super.key,
required this.poll,
required this.vote,
required this.onVoteChanged,
this.onVoteError,
this.style = const PollStyle(),
this.locale = PollLocale.en,
this.titleBuilder,
});