TBadge constructor

const TBadge({
  1. Key? key,
  2. Widget? badgeContent,
  3. Widget? child,
  4. TBadgeStyle badgeStyle = const TBadgeStyle(),
  5. TBadgeAnimation badgeAnimation = const TBadgeAnimation.slide(),
  6. TBadgePosition? position,
  7. bool showBadge = true,
  8. bool ignorePointer = false,
  9. StackFit stackFit = StackFit.loose,
  10. dynamic onTap()?,
})

Implementation

const TBadge({
  super.key,
  this.badgeContent,
  this.child,
  this.badgeStyle = const TBadgeStyle(),
  this.badgeAnimation = const TBadgeAnimation.slide(),
  this.position,
  this.showBadge = true,
  this.ignorePointer = false,
  this.stackFit = StackFit.loose,
  this.onTap,
});