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

eventManager → EventManager
no setter
hashCode int
The hash code for this object.
no setterinherited
instanceManager → InstanceManager
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, InstanceManageMode mode = InstanceManageMode.builder}) → T?
Registers, creates and/or gets the instance of T with an id optional.
inherited
delete<T extends Object?>([String? id, Object? ref]) bool
Deletes the instance from the store if it has been removed from all references and meets the conditions of instance type.
inherited
destroy<T extends Object?>({String? id, bool onlyInstance = false}) bool
Destroys the instance and builder of T type with an id optional.
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 T type with an id optional.
inherited
get<T extends Object?>([String? id, Object? ref]) → T?
Creates and/or gets the instance of T with an id optional.
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?
Returns InstanceManageMode of instance parameter.
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 for creating a new instance of T with an id optional as InstanceManageMode.builder.
inherited
lazyFactory<T extends Object?>(InstanceBuilder<T> builder, {String? id}) bool
Register a builder function for creating a new instance of T with an id optional as InstanceManageMode.factory.
inherited
lazySingleton<T extends Object?>(InstanceBuilder<T> builder, {String? id}) bool
Register a builder function for creating a new instance of T with an id optional as InstanceManageMode.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, InstanceManageMode mode = InstanceManageMode.builder}) bool
Register a builder function for creating a new instance of T with an id optional.
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