declare method

void declare(
  1. void scaffold(
    1. TestHost host
    ), {
  2. bool useCommonHost = false,
})

Implementation

void declare(void Function(TestHost host) scaffold,
    {bool useCommonHost = false}) {
  if (useCommonHost) {
    dartTest.setUpAll(setUp);
    dartTest.tearDownAll(tearDown);
  } else {
    dartTest.setUp(setUp);
    dartTest.tearDown(tearDown);
  }
  scaffold(this);
}