pumpAsyncWidget function
异步组件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();
}