applyInternal method
bool
applyInternal(
- String applyType,
- AFWidgetSelector selector,
- Element element,
- dynamic data,
override
Note that data is ignored, this toggles the chip state.
Implementation
@override
bool applyInternal(String applyType, AFWidgetSelector selector, Element element, dynamic data) {
final widget = element.widget;
if(widget is ChoiceChip) {
widget.onSelected?.call(!widget.selected);
return true;
}
return false;
}