InstanceBuilderFactory<S> class

Internal class to register instances with Get.put<S>().

Constructors

InstanceBuilderFactory({required bool? isSingleton, required InstanceBuilderCallback<S> builderFunc, required bool permanent, required bool isInit, required bool fenix, required String? tag, required InstanceBuilderFactory<S>? lateRemove, String? bindingOwnerRouteName})

Properties

bindingOwnerRouteName → String?
The name of the route whose page binding created this registration, or null when it was not created by a page binding. Used to link the instance to the declaring page's route on its first resolution.
final
builderFunc ↔ InstanceBuilderCallback<S>
Generates (and regenerates) the instance when isSingleton=false. Usually used by factory methods
getter/setter pair
dependency ↔ S?
Stores the actual object instance when isSingleton=true.
getter/setter pair
fenix ↔ bool
When fenix mode is available, when a new instance is need Instance manager will recreate a new instance of S
getter/setter pair
hashCode → int
The hash code for this object.
no setterinherited
isDirty ↔ bool
getter/setter pair
isInit ↔ bool
getter/setter pair
isSingleton ↔ bool?
Marks the Builder as a single instance. For reusing dependency instead of builderFunc
getter/setter pair
lateRemove ↔ InstanceBuilderFactory<S>?
getter/setter pair
permanent ↔ bool
Flag to persist the instance in memory.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
tag ↔ String?
getter/setter pair

Methods

getDependency() → S
Gets the actual instance by its builderFunc or the persisted instance.
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