resetFocusedViewTestValues method
Clears testFocusEvents and sets currentlyFocusedViewIdTestValue to null.
Implementation
void resetFocusedViewTestValues() {
if (_currentlyFocusedViewId != null) {
// If there is a focused view, then tell everyone who still cares that
// it's unfocusing.
_platformDispatcher.onViewFocusChange?.call(
ViewFocusEvent(
viewId: _currentlyFocusedViewId!,
state: ViewFocusState.unfocused,
direction: ViewFocusDirection.undefined,
),
);
_currentlyFocusedViewId = null;
}
_testFocusEvents.clear();
}