NiceXPBar constructor

const NiceXPBar({
  1. Key? key,
  2. required int currentXp,
  3. required int xpForNextLevel,
  4. int level = 1,
  5. int? previousXp,
  6. bool showLevelBadge = true,
  7. bool showNumbers = true,
  8. String label = 'Experience',
  9. double height = 18,
  10. bool animateOnMount = true,
  11. VoidCallback? onLevelUp,
})

Implementation

const NiceXPBar({
  super.key,
  required this.currentXp,
  required this.xpForNextLevel,
  this.level = 1,
  this.previousXp,
  this.showLevelBadge = true,
  this.showNumbers = true,
  this.label = 'Experience',
  this.height = 18,
  this.animateOnMount = true,
  this.onLevelUp,
});