put<T> method

T put<T>(
  1. T instance, {
  2. String? tag,
  3. bool isPermanent = false,
})

Register an existing instance

Use this for eager registration of dependencies.

Implementation

T put<T>(T instance, {String? tag, bool isPermanent = false}) {
  ZenLogger.logDebug('Putting $T instance in test container');

  return _scope.put<T>(
    instance,
    tag: tag,
    isPermanent: isPermanent,
  );
}