chip method
Implementation
HareWidget chip({bool noIcon = true}) {
return HareBuilder((c) {
return ActionChip(
label: display?.call(this) ?? titleWidget,
avatar: (!hasIcon || noIcon)
? null
: CircleAvatar(backgroundColor: Colors.transparent, foregroundColor: globalTheme.textTheme.labelMedium?.color, child: iconWidget),
onPressed: enable ? onclick : null);
}).also((e) => _widget = e);
}