APIRootStarter<A extends APIRoot>.fromInstance constructor

APIRootStarter<A extends APIRoot>.fromInstance(
  1. A apiRoot, {
  2. FutureOr<bool> preInitializer()?,
  3. FutureOr<bool> stopper()?,
})

Instantiate from an already defined APIRoot instance.

Implementation

APIRootStarter.fromInstance(A apiRoot,
    {FutureOr<bool> Function()? preInitializer,
    FutureOr<bool> Function()? stopper})
    : _apiRoot = apiRoot,
      _preInitializer = preInitializer,
      _stopper = stopper,
      _apiRootInstantiator = null,
      _apiConfigProvider = null;