GrxChip constructor

const GrxChip({
  1. Key? key,
  2. required Widget label,
  3. Color backgroundColor = Colors.transparent,
  4. Color borderColor = Colors.transparent,
  5. EdgeInsetsGeometry contentPadding = const EdgeInsets.symmetric(horizontal: 16.0, vertical: 8.0),
})

Implementation

const GrxChip({
  super.key,
  required this.label,
  this.backgroundColor = Colors.transparent,
  this.borderColor = Colors.transparent,
  this.contentPadding = const EdgeInsets.symmetric(
    horizontal: 16.0,
    vertical: 8.0,
  ),
}) : assert(
        backgroundColor != Colors.transparent ||
            borderColor != Colors.transparent,
      );