CustomDep<Value> constructor

CustomDep<Value>(
  1. BaseScopeContainer scope,
  2. DepBuilder<Value> builder, {
  3. String? name,
  4. DepObserverInternal? observer,
  5. DepBehavior<Value, Dep<Value>>? behavior,
})

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,
      );