SingleInstanceFactory<T> class

Single instance factory where instance created is given at constructor.

Inheritance

Constructors

SingleInstanceFactory(T instance)
Creates InjectFactory with single instance of T type.

Properties

hashCode int
The hash code for this object.
no setterinherited
localSingleton → T?
Local singleton value created in this factory
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

close() → void
Releasing resources that a class is using.
inherited
create() → T
Creates a instance of T
inherited
createInstance() → T
Implementation of createInstance should never be called
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited