platformDispatcher property
The TestPlatformDispatcher that is being used in this test.
This will be injected into the framework such that calls to WidgetsBinding.platformDispatcher will use this. This allows users to change platform specific properties for testing.
See also:
- TestFlutterView which allows changing view specific properties for testing
- view and viewOf which are used to find TestFlutterViews from the widget tree
Implementation
TestPlatformDispatcher get platformDispatcher => binding.platformDispatcher as TestPlatformDispatcher;