Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Public Member Functions | List of all members
io.flutter.plugin.platform.PlatformViewsControllerTest.ShadowPlatformTaskQueue Class Reference

Public Member Functions

void dispatch (Runnable runnable)
 

Detailed Description

For convenience when writing tests, this allows us to make fake messages from Flutter via Platform Channels. Typically those calls happen on the ui thread which dispatches to the platform thread. Since tests run on the platform thread it makes it difficult to test without this, but isn't technically required.

Definition at line 1648 of file PlatformViewsControllerTest.java.

Member Function Documentation

◆ dispatch()

void io.flutter.plugin.platform.PlatformViewsControllerTest.ShadowPlatformTaskQueue.dispatch ( Runnable  runnable)
inline

Definition at line 1650 of file PlatformViewsControllerTest.java.

1650 {
1651 runnable.run();
1652 }

The documentation for this class was generated from the following file: