Badge constructor

const Badge(
  1. String label, {
  2. BadgeTone tone = BadgeTone.info,
  3. String? backgroundColor,
  4. String? foregroundColor,
  5. double fontSize = 8,
  6. EdgeInsetsGeometry padding = const EdgeInsets.symmetric(horizontal: 8, vertical: 3),
})

Badge API.

Implementation

const Badge(
  this.label, {
  this.tone = BadgeTone.info,
  this.backgroundColor,
  this.foregroundColor,
  this.fontSize = 8,
  this.padding = const EdgeInsets.symmetric(horizontal: 8, vertical: 3),
});