Badge constructor

const Badge({
  1. Key? key,
  2. String? text,
  3. BadgeType type = BadgeType.text,
})

Implementation

const Badge({
  super.key,
  this.text,
  this.type = BadgeType.text,
});