BadgeStyle constructor

const BadgeStyle({
  1. BadgeShape shape = BadgeShape.circle,
  2. BorderRadius borderRadius = BorderRadius.zero,
  3. Color badgeColor = Colors.red,
  4. BorderSide borderSide = BorderSide.none,
  5. double elevation = 2,
  6. BadgeGradient? badgeGradient,
  7. BadgeGradient? borderGradient,
  8. EdgeInsetsGeometry padding = const EdgeInsets.all(5.0),
})

Implementation

const BadgeStyle({
  this.shape = BadgeShape.circle,
  this.borderRadius = BorderRadius.zero,
  this.badgeColor = Colors.red,
  this.borderSide = BorderSide.none,
  this.elevation = 2,
  this.badgeGradient,
  this.borderGradient,
  this.padding = const EdgeInsets.all(5.0),
});