didUpdateWidget method

  1. @override
void didUpdateWidget(
  1. covariant Form oldWidget
)
override

Called whenever the widget configuration changes.

Implementation

@override
void didUpdateWidget(covariant Form oldWidget) {
  super.didUpdateWidget(oldWidget);
  if (!identical(oldWidget, widget) && oldWidget._state == this) {
    oldWidget._state = null;
  }
  widget._state = this;
  if (identical(oldWidget, widget)) {
    widget._activeFieldIndex = oldWidget._activeFieldIndex;
  }
  _markFieldOrderDirty();
}