ActionBoxBase<TActionDirectory extends ActionDirectory> constructor
ActionBoxBase<TActionDirectory extends ActionDirectory> (
- TActionDirectory _rootFactory(), {
- Duration? defaultTimeout,
- StreamController createUniversalStreamController()?,
- dynamic handleCommonError(
- ActionError error,
- EventSink universalSink
- 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 ?? []);