TransientDescriptor<T> class

Transient descriptor

Use this type for service definition if you don't want someone rewrite your service to another life-time service.

Example:

TransientDescriptor<String> myTransientService = TransientDescriptor<String>(factory: _createStringFactory);
Inheritance
Implementers

Constructors

TransientDescriptor.new(ServiceFactory<T> factory)

Properties

factory ServiceFactory<T>
The factory method of the service
latefinalinherited
hashCode int
The hash code for this object.
no setterinherited
lifeTime ServiceLifeTime
The life-time of the service
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
serviceType Type
The type of the service
finalinherited

Methods

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