onDependencyCreate<S> method

S Function() onDependencyCreate<S>(
  1. S builder(),
  2. LevitScope scope,
  3. String key,
  4. LevitDependency info,
)

Intercepts the instantiation logic of a dependency.

Override this to wrap the builder, enabling custom behavior like executing within a specific Zone.

Returns the functional wrapper around builder.

Implementation

S Function() onDependencyCreate<S>(
  S Function() builder,
  LevitScope scope,
  String key,
  LevitDependency info,
) =>
    builder;