ReactterInstanceManager mixin

A mixin-class to provides the ability to manager instances.

Properties

hashCode int
The hash code for this object.
no setterinherited
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 _instancesByKey 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.
instanceOf<T extends Object?>([String? id]) → T?
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 _instancesByKey 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 _instancesByKey.

Operators

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