NiceLeaderboard constructor

const NiceLeaderboard({
  1. Key? key,
  2. required List<NiceLeaderboardEntry> entries,
  3. String? currentUserId,
  4. String title = 'Leaderboard',
  5. ValueChanged<NiceLeaderboardEntry>? onEntryTap,
  6. bool showChange = true,
  7. int topCount = 3,
  8. int maxVisible = 20,
})

Implementation

const NiceLeaderboard({
  super.key,
  required this.entries,
  this.currentUserId,
  this.title = 'Leaderboard',
  this.onEntryTap,
  this.showChange = true,
  this.topCount = 3,
  this.maxVisible = 20,
});