pumpAsyncWidget function

Future pumpAsyncWidget(
  1. WidgetTester tester,
  2. Widget widget
)

异步组件pump

Widget widget = ...;
await pumpAsyncWidget(tester, widget);

Ref:

Implementation

Future<dynamic> pumpAsyncWidget(WidgetTester tester, Widget widget) async {
  await tester.pumpWidget(WidgetTestWrapper(widget: widget));
  await tester.pumpAndSettle();
}