Badge constructor

const Badge({
  1. Key? key,
  2. bool hide = false,
  3. required Widget child,
  4. required Widget badge,
  5. Color? badgeColor,
  6. double? badgeSize,
  7. double? top,
  8. double? right,
  9. double? bottom,
  10. double? left,
  11. AlignmentGeometry? alignment,
  12. double? width,
  13. double? height,
  14. GestureTapCallback? onTap,
  15. EdgeInsetsGeometry? margin,
})

Implementation

const Badge({
  super.key,
  this.hide = false,
  required this.child,
  required this.badge,
  this.badgeColor,
  this.badgeSize,
  this.top,
  this.right,
  this.bottom,
  this.left,
  this.alignment,
  this.width,
  this.height,
  this.onTap,
  this.margin,
});