didUpdateWidget method

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

Called whenever the widget configuration changes.

Implementation

@override
void didUpdateWidget(covariant T oldWidget) {
  super.didUpdateWidget(oldWidget);
  final isFocused = isWidgetFocused;
  updateFocusIfNeeded(_wasFocused, isFocused);
  _wasFocused = isFocused;
}