Badge constructor

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

Implementation

const Badge({
  Key? key,
  this.badgeContent,
  this.child,
  this.badgeStyle = const BadgeStyle(),
  this.badgeAnimation = const BadgeAnimation.slide(),
  this.position,
  this.showBadge = true,
  this.ignorePointer = false,
  this.stackFit = StackFit.loose,
  this.onTap,
}) : super(key: key);