Badge constructor
const
Badge({
- Key? key,
- Widget? badgeContent,
- Widget? child,
- BadgeStyle badgeStyle = const BadgeStyle(),
- BadgeAnimation badgeAnimation = const BadgeAnimation.slide(),
- BadgePosition? position,
- bool showBadge = true,
- bool ignorePointer = false,
- StackFit stackFit = StackFit.loose,
- 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);