put<S>  method 
      
S
put<S>( 
    
- S dependency, {
- String? tag,
- bool permanent = false,
- @deprecated InstanceBuilderCallback<S> ? builder,
Injects an instance <S> in memory to be globally accessible.
No need to define the generic type <S> as it's inferred from
the dependency
- dependencyThe Instance to be injected.
- tagoptionally, use a- tagas an "id" to create multiple records of the same Type<- S>
- permanentkeeps the Instance in memory, not following- Get.smartManagementrules.
Implementation
S put<S>(
  S dependency, {
  String? tag,
  bool permanent = false,
  @deprecated InstanceBuilderCallback<S>? builder,
}) {
  _insert(
      isSingleton: true,
      name: tag,
      permanent: permanent,
      builder: builder ?? (() => dependency));
  return find<S>(tag: tag);
}