LocatorsContainer class
Methods
-
clear()
→ void
-
clear the container from every thing
-
contains<T>({String? tag})
→ bool
-
return true if the the container contains a Type
-
containsKey({String? key})
→ bool
-
return true if the the container contains a key
-
delete<S>({String? tag})
→ void
-
delete a
dependency
from the container
-
deleteByKey(String key)
→ void
-
delete a
dependency
from the container by the key
-
factory<S>(S builder(), {String? tag})
→ void
-
insert dependency factory into the container
build a new instance every time needed
-
factoryIfAbsent<S>(S builder(), {String? tag})
→ void
-
-
find<S>({String? tag})
→ S
-
return
dependency
from the container
retrieving behavior might changes and depends on how did you insert it
-
insert<I>(DependencyManager<I> manager, {String? tag, bool force = false})
→ void
-
inserts the manger into the container
inherited
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
put<I>(I dependency, {String? tag})
→ void
-
insert
dependency
into the container
-
putIfAbsent<I>(I dependency, {String? tag})
→ void
-
insert
dependency
into the container if not registered before
-
putLazy<S>(S builder(), {String? tag})
→ void
-
insert dependency builder function into the container
builds the dependency only once (when first needed)
-
putLazyIfAbsent<S>(S builder(), {String? tag})
→ void
-
insert
dependency
into the container if not registered before
-
toString()
→ String
-
A string representation of this object.
inherited