initializeTestUIRoot<U extends UIRoot> function

Future<U> initializeTestUIRoot<U extends UIRoot>(
  1. U uiRootInstantiator(
    1. UIElement rootContainer
    ), {
  2. String outputDivID = 'test-output',
  3. Duration initialRenderTimeout = const Duration(seconds: 5),
})

Initializes the test UIRoot using the uiRootInstantiator to instantiate it.

Implementation

Future<U> initializeTestUIRoot<U extends UIRoot>(
        U Function(UIElement rootContainer) uiRootInstantiator,
        {String outputDivID = 'test-output',
        Duration initialRenderTimeout = const Duration(seconds: 5)}) =>
    _chainCapture(() => _initializeTestUIRootImpl<U>(
        uiRootInstantiator, outputDivID, initialRenderTimeout));