ReactterInstanceManager class

A instances manager

Constructors

ReactterInstanceManager()
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
instances HashSet<ReactterInstance>
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

create<T extends Object?>({required ContextBuilder<T> builder, String? id, Object? ref}) → T?
Registers, creates and gets the instance of T with or without id given.
delete<T extends Object?>([String? id, Object? ref]) bool
Deletes the instance from instances but keep the builder function.
exists<T extends Object?>([String? id]) bool
Valids if the instance of T with or without id given exists.
find(Object? instance) ReactterInstance?
Get the ReactterInstance of instance given.
get<T extends Object?>([String? id]) → T?
Gets the instance of T with or without id given.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
register<T extends Object?>({required ContextBuilder<T> builder, String? id}) bool
Registers a builder function into to instances to allows to create the instance with get.
toString() String
A string representation of this object.
inherited
unregister<T extends Object>([String? id]) bool
Removes a builder function from instances.

Operators

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