ModulaChip constructor

const ModulaChip({
  1. required String label,
  2. Key? key,
  3. ModulaChipType type = ModulaChipType.static,
  4. bool selected = false,
  5. ValueChanged<bool>? onSelected,
  6. VoidCallback? onDeleted,
  7. Widget? avatar,
  8. IconData? icon,
  9. Color? backgroundColor,
  10. Color? selectedColor,
  11. Color? labelColor,
  12. TextStyle? labelStyle,
  13. double elevation = 0,
  14. EdgeInsets padding = const EdgeInsets.symmetric(horizontal: 12, vertical: 6),
  15. double borderRadius = 16.0,
  16. double? width,
})

Implementation

const ModulaChip({
  required this.label,
  super.key,
  this.type = ModulaChipType.static,
  this.selected = false,
  this.onSelected,
  this.onDeleted,
  this.avatar,
  this.icon,
  this.backgroundColor,
  this.selectedColor,
  this.labelColor,
  this.labelStyle,
  this.elevation = 0,
  this.padding = const EdgeInsets.symmetric(horizontal: 12, vertical: 6),
  this.borderRadius = 16.0,
  this.width,
});