changeState method

  1. @override
void changeState()
inherited

Implementation

@override
void changeState() {
  super.changeState();
  // dispatch changes, so anything binding to this will be notified
  if (widget.controller.lastSetterProperty != null) {
    if (scopeManager != null &&
        widget is Invokable &&
        (widget as Invokable).id != null) {
      scopeManager!.dispatch(ModelChangeEvent(
          WidgetBindingSource((widget as Invokable).id!,
              property: widget.controller.lastSetterProperty!.key),
          widget.controller.lastSetterProperty!.value));
    }
    widget.controller.lastSetterProperty = null;
  }
}