VoteButton constructor

const VoteButton({
  1. Key? key,
  2. required int voteCount,
  3. required bool hasVoted,
  4. required VoidCallback onPress,
  5. bool disabled = false,
})

Implementation

const VoteButton({
  super.key,
  required this.voteCount,
  required this.hasVoted,
  required this.onPress,
  this.disabled = false,
});