applyInternal method

  1. @override
bool applyInternal(
  1. String applyType,
  2. AFWidgetSelector selector,
  3. Element elem,
  4. 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;
}