void postTest()

Called by the testWidgets function after a test is executed.

Source

void postTest() {
  assert(inTest);
  FlutterError.onError = _oldExceptionHandler;
  _pendingExceptionDetails = null;
  _currentTestCompleter = null;
  _parentZone = null;
}