BaseDimeModule class abstract
Base Dime module for providing types and InjectFactory for types.
- Mixed in types
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
-
injectMap
→ Map<
Type, InjectFactory> -
Returns module's injection map.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
addCreator<
T> (Creator< T> objectCreator) → void -
Adds InjectFactory with
objectCreator
function. -
addFactory(
Type type, InjectFactory factory) → void -
Adds a
factory
into module's injection map. -
addSingle<
T> (T instance, {String? tag}) → void - Will add instance to the module, if T is defined in
-
addSingleByCreator<
T> (Creator< T> objectCreator) → void -
Adds singleton InjectFactory with
objectCreator
function -
close(
) → void -
Closes the module and all its InjectFactory.
override
-
get<
T> ({String? tag}) → T? - Gets the created value from the module
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
remove(
Type type) → void -
Removes a
type
from module's injection map. -
toString(
) → String -
A string representation of this object.
inherited
-
updateInjections(
) → void - Updates all injection - abstract method to be implemented by main BaseDimeModule
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited