applyInternal method
bool
applyInternal(
- String applyType,
- AFWidgetSelector selector,
- Element elem,
- dynamic data,
override
Implementations should override this method, and return false if they fail.
Implementation
@override
bool applyInternal(String applyType, AFWidgetSelector selector, Element elem, dynamic data) {
final widget = elem.widget;
if(widget is TextField && data is String) {
final widCont = widget.controller;
if(widCont != null) {
widCont.text = data;
}
widget.onChanged?.call(data);
return true;
}
return false;
}