call method

Future<void> call(
  1. WidgetTester tester
)

Implementation

Future<void> call(WidgetTester tester) async {
  _tester = tester;
  var runContext = tester.runContext;
  try {
    do {
      runContext.screenIndex = 0;
      // Reset between the runs
      await tester.pumpWidget(const SizedBox());
      await setUp();
      await run();
    } while (runContext.pathTracker.resetAndCheck());
  } finally {
    await tearDown();
    _tester = null;
  }
}