newBadge static method

GradientChip newBadge({
  1. Key? key,
  2. required String label,
  3. IconData? icon,
})

Creates a new chip.

Implementation

static GradientChip newBadge({
  Key? key,
  required String label,
  IconData? icon,
}) {
  return GradientChip(
    key: key,
    label: label,
    icon: icon,
    colors: GradientChipPresets.fresh,
  );
}