TestPlatformDispatcher constructor
- required PlatformDispatcher platformDispatcher,
Constructs a TestPlatformDispatcher that defers all behavior to the given PlatformDispatcher unless explicitly overridden for test purposes.
Implementation
TestPlatformDispatcher({required this._platformDispatcher}) {
_updateViewsAndDisplays();
_platformDispatcher.onMetricsChanged = _handleMetricsChanged;
_platformDispatcher.onViewFocusChange = _handleViewFocusChanged;
}