CustomDep<Value> constructor
CustomDep<Value> (
- BaseScopeContainer scope,
- DepBuilder<
Value> builder, { - String? name,
- DepObserverInternal? observer,
- DepBehavior<
Value, Dep< ? behavior,Value> >
Creates a custom dependency.
scope - The scope container that owns this dependency
builder - Factory function that creates the dependency value
name - Optional name for debugging purposes
observer - Optional observer for monitoring dependency lifecycle
Implementation
CustomDep(
BaseScopeContainer scope,
DepBuilder<Value> builder, {
String? name,
DepObserverInternal? observer,
DepBehavior<Value, Dep<Value>>? behavior,
}) : super._(
scope,
builder,
behavior ?? CoreDepBehavior<Value, Dep<Value>>(),
name: name,
observer: observer,
);