NiceAttractionVoting constructor

const NiceAttractionVoting({
  1. Key? key,
  2. required List<NiceEventAttraction> attractions,
  3. ValueChanged<String>? onVote,
  4. ValueChanged<String>? onUnvote,
  5. Set<String> votedIds = const {},
  6. int? maxVotes,
  7. bool closed = false,
  8. NiceVotingSortBy sortBy = NiceVotingSortBy.votes,
  9. bool showResults = true,
})

Implementation

const NiceAttractionVoting({
  super.key,
  required this.attractions,
  this.onVote,
  this.onUnvote,
  this.votedIds = const {},
  this.maxVotes,
  this.closed = false,
  this.sortBy = NiceVotingSortBy.votes,
  this.showResults = true,
});