didChangeViewFocus method
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.
The view ID of the FlutterView in which a particular BuildContext
resides can be retrieved with View.of(context).viewId
, so that it may be
compared with the view ID in the event
to see if the event pertains to
the given context.
Implementation
@override
void didChangeViewFocus(ViewFocusEvent event) {
hook.handler.handleViewFocusChange(event);
}