ActionBoxBase<TActionDirectory extends ActionDirectory> constructor

ActionBoxBase<TActionDirectory extends ActionDirectory>(
  1. TActionDirectory _rootFactory(), {
  2. Duration? defaultTimeout,
  3. StreamController createUniversalStreamController()?,
  4. dynamic handleCommonError(
    1. ActionError error,
    2. EventSink universalSink
    )?,
  5. List<CacheStorage?>? cacheStorages,
})

Implementation

ActionBoxBase(this._rootFactory,
    {Duration? defaultTimeout,
    StreamController Function()? createUniversalStreamController,
    Function(ActionError error, EventSink universalSink)? handleCommonError,
    List<CacheStorage?>? cacheStorages})
    : _defaultTimeout = defaultTimeout ?? const Duration(seconds: 3),
      _createUniversalStreamController = createUniversalStreamController,
      _handleCommonError = handleCommonError,
      _cacheProvider = CacheProvider(cacheStorages ?? []);