waitUntilFirstFrameRasterized method

Future<void> waitUntilFirstFrameRasterized()

Waits until the next dart:ui.PlatformDispatcher.onReportTimings is called.

Use this method to wait for the first frame to be rasterized during the app launch.

Throws UnimplementedError on WebFlutterDriver instances.

Implementation

Future<void> waitUntilFirstFrameRasterized() async {
  await sendCommand(const WaitForCondition(FirstFrameRasterized()));
}