Unverified Commit 338581b8 authored by Anthony's avatar Anthony Committed by GitHub

add await to fix analyzer (#28157)

parent d6c0f338
......@@ -297,9 +297,9 @@ class WidgetTester extends WidgetController implements HitTestDispatcher, Ticker
dynamic caughtException;
void handleError(dynamic error, StackTrace stackTrace) => caughtException ??= error;
Future<void>.microtask(() { binding.handleBeginFrame(duration); }).catchError(handleError);
await Future<void>.microtask(() { binding.handleBeginFrame(duration); }).catchError(handleError);
await idle();
Future<void>.microtask(() { binding.handleDrawFrame(); }).catchError(handleError);
await Future<void>.microtask(() { binding.handleDrawFrame(); }).catchError(handleError);
await idle();
if (caughtException != null) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment