handleViewFocusChanged method

  1. @override
void handleViewFocusChanged(
  1. ViewFocusEvent event
)
override

Called whenever the PlatformDispatcher receives a notification that the focus state on a view has changed.

The event contains the view ID for the view that changed its focus state.

See also:

Implementation

@override
void handleViewFocusChanged(ViewFocusEvent event) {
  super.handleViewFocusChanged(event);
  for (final WidgetsBindingObserver observer in List<WidgetsBindingObserver>.of(_observers)) {
    observer.didChangeViewFocus(event);
  }
}