UpvoteButton constructor
const
UpvoteButton({
- Key? key,
- int voteCount = 0,
- required VoidCallback onUpvote,
- 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);