widgets/simple_poll library
Classes
-
SimplePoll<
T extends Object>
Typedefs
-
PollVoteChanged<
T extends Object> = FutureOr< void> Function(PollVote<T> ? vote) -
Called when the user casts, changes, or clears (
null) their vote. The returned future is awaited before the "submitting" state clears, so a host app canawaita network call before SimplePoll reflects the vote. - PollVoteError = void Function(Object error, StackTrace stackTrace)
- Called when a future returned by PollVoteChanged throws.