UpvoteButton constructor

const UpvoteButton({
  1. Key? key,
  2. int voteCount = 0,
  3. required VoidCallback onUpvote,
  4. bool showBorder = true,
})

Implementation

const UpvoteButton({
  Key? key,
  this.voteCount = 0,
  required this.onUpvote,
  this.showBorder = true, // Default value for border visibility
}) : super(key: key);