NotificationBadge constructor

const NotificationBadge({
  1. Key? key,
  2. required Widget child,
  3. required int count,
  4. bool showZero = false,
  5. Color? badgeColor,
  6. Color? textColor,
  7. double size = 20.0,
  8. Alignment alignment = Alignment.topRight,
  9. EdgeInsets padding = const EdgeInsets.all(4.0),
})

Implementation

const NotificationBadge({
  super.key,
  required this.child,
  required this.count,
  this.showZero = false,
  this.badgeColor,
  this.textColor,
  this.size = 20.0,
  this.alignment = Alignment.topRight,
  this.padding = const EdgeInsets.all(4.0),
});