ReactterInterface class

A class that represents the interface for Reactter.

It is intended to be used as a mixin with other classes.

Constructors

ReactterInterface()
factory

Properties

eventHandler → EventHandler
no setter
hashCode int
The hash code for this object.
no setterinherited
instanceInjection → DependencyInjection
no setter
isLogEnable bool
It's used to determine whether logging is enabled or disabled.
getter/setter pairinherited
log LogWriterCallback
It's used as a callback function for logging purposes in the ReactterInterface class.
no setter
logger → Logger
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

batch<T>(T callback()) → T
Executes the given callback function within a batch operation.
inherited
builder<T extends Object?>(InstanceBuilder<T> builder, {String? id, Object? ref}) → T?
It's a ways to manage an instance, which registers a builder function and creates the instance, unless it has already done so.
inherited
create<T extends Object?>(InstanceBuilder<T> builder, {String? id, Object? ref, DependencyMode mode = DependencyMode.builder}) → T?
Register a builder function of the t dependency with/without id and creates the instance if it isn't already registered, else gets its instance only.
inherited
delete<T extends Object?>([String? id, Object? ref]) bool
Deletes the dependency from the store if it has been removed from all references and meets the conditions of dependency type.
inherited
destroy<T extends Object?>({String? id, bool onlyInstance = false}) bool
Destroys the instance and builder function of the T dependency with/without id.
inherited
emit(Object? instance, Enum eventName, [dynamic param]) → void
Trigger eventName event with or without the param given.
inherited
exists<T extends Object?>([String? id]) bool
Valids if the instance of T type with id optional exists.
inherited
factory<T extends Object?>(InstanceBuilder<T> builder, {String? id, Object? ref}) → T?
It's a ways to manage an instance, which registers a builder function only once and creates the instance if not already done.
inherited
find<T extends Object?>([String? id]) → T?
Gets the instance of the T dependency with/without id.
inherited
get<T extends Object?>([String? id, Object? ref]) → T?
Creates and/or gets the instance of the T dependency with/without id.
inherited
getDependencyMode(Object? instance) DependencyMode?
Returns DependencyMode of instance parameter.
inherited
getHashCodeRefAt<T extends Object?>(int index, [String? id]) int?
Returns the hashCode reference at a specified index for a given type and optional ID.
inherited
getInstanceManageMode(Object? instance) → InstanceManageMode?
inherited
isRegistered(Object? instance) bool
Checks if an instance is registered in Reactter.
inherited
lazyBuilder<T extends Object?>(InstanceBuilder<T> builder, {String? id}) bool
Register a builder function of the T dependency with/without id as DependencyMode.builder.
inherited
lazyFactory<T extends Object?>(InstanceBuilder<T> builder, {String? id}) bool
Register a builder function of the t dependency with/without id as DependencyMode.factory.
inherited
lazySingleton<T extends Object?>(InstanceBuilder<T> builder, {String? id}) bool
Register a builder function of the t dependency with/without id as DependencyMode.singleton.
inherited
lazyState<T extends S>(T buildState(), Object instance) → T
Lazily initializes a state of type StateBase and attaches it to the given instance.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
off<T, P>(Object? instance, Enum eventName, CallbackEvent<T, P> callback) → void
Removes the callback of eventName.
inherited
offAll(Object? instance) → void
Removes all instance's events
inherited
on<T, P>(Object? instance, Enum eventName, CallbackEvent<T, P> callback) → void
Puts on to listen eventName event.
inherited
one<T, P>(Object? instance, Enum eventName, CallbackEvent<T, P> callback) → void
Puts on to listen eventName event only once.
inherited
register<T extends Object?>(InstanceBuilder<T> builder, {String? id, DependencyMode mode = DependencyMode.builder}) bool
Register a builder function of the T dependency with/without id.
inherited
singleton<T extends Object?>(InstanceBuilder<T> builder, {String? id, Object? ref}) → T?
It's a ways to manage a instance, which registers a builder function and creates the instance only once.
inherited
toString() String
A string representation of this object.
inherited
unregister<T extends Object?>([String? id]) bool
Removes a builder function registed of T type with an id optional.
inherited
untracked<T>(T callback()) → T
Executes the given callback function without tracking any state changes. This means that any state changes that occur inside the callback function will not trigger any side effects.
inherited

Operators

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