put<S> method

S put<S>(
  1. S dependency, {
  2. String? tag,
  3. bool permanent = false,
})

Implementation

S put<S>(
  S dependency, {
  String? tag,
  bool permanent = false,
}) {
  _insert(
    isSingleton: true,
    name: tag,
    permanent: permanent,
    builder: () => dependency,
  );
  return find<S>(tag: tag);
}