Chip constructor

Chip(
  1. String label, {
  2. String? icon,
  3. bool selected = false,
  4. ColorToken? backgroundColor,
  5. ColorToken? textColor,
  6. double borderRadius = 8,
  7. bool disabled = false,
  8. Object? onTap,
  9. String? name,
  10. Object? visible,
})

Implementation

Chip(
  this.label, {
  this.icon,
  this.selected = false,
  this.backgroundColor,
  this.textColor,
  this.borderRadius = 8,
  this.disabled = false,
  Object? onTap,
  String? name,
  Object? visible,
}) : onTap = normalizeActionSequence(onTap, parameterName: 'onTap'),
     super(name: name, visible: _normalizeVisibility(visible));