pumpWidget function

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

组件pump

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

Ref:

Implementation

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