pill static method

BoxDecoration pill({
  1. required Color color,
  2. Color? borderColor,
  3. double borderWidth = 1.0,
})

Pill/Badge shape decoration with radFull.

Implementation

static BoxDecoration pill({
  required Color color,
  Color? borderColor,
  double borderWidth = 1.0,
}) {
  return BoxDecoration(
    color: color,
    borderRadius: Dimensions.radFull,
    border: borderColor != null
        ? Border.all(color: borderColor, width: borderWidth)
        : null,
  );
}