RtInterface class
A class that represents the interface for Rt.
It is intended to be used as a mixin with other classes.
Constructors
- RtInterface()
-
factory
Properties
- dependencyInjection → DependencyInjection
-
no setter
- eventHandler → EventHandler
-
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- 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 RtInterface 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? -
Register a
builder
function of theT
dependency with/withoutid
as DependencyMode.builder and creates the instance if it isn't already registered, else gets its instance only.inherited -
create<
T extends Object?> (InstanceBuilder< T> builder, {String? id, Object? ref, DependencyMode mode = DependencyMode.builder}) → T? -
Register a
builder
function of theT
dependency with/withoutid
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/withoutid
.inherited -
emit(
Object? instance, Enum eventName, [dynamic param]) → void -
Trigger
eventName
event with or without theparam
given.inherited -
exists<
T extends Object?> ([String? id]) → bool -
Checks if the instance of
T
dependency with/withoutid
exists.inherited -
factory<
T extends Object?> (InstanceBuilder< T> builder, {String? id, Object? ref}) → T? -
Register a
builder
function of theT
dependency with/withoutid
as DependencyMode.factory and creates the instance if it isn't already registered, else gets its instance only.inherited -
find<
T extends Object?> ([String? id]) → T? -
Gets the instance of the
T
dependency with/withoutid
.inherited -
get<
T extends Object?> ([String? id, Object? ref]) → T? -
Creates and/or gets the instance of the
T
dependency with/withoutid
.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
-
hasRegister<
T extends Object?> ([String? id]) → bool -
Checks if the
T
dependency with/withoutid
is registered in Reactter.inherited -
isActive(
Object? instance) → bool -
Checks if the
instance
is active in Reactter.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 theT
dependency with/withoutid
as DependencyMode.builder.inherited -
lazyFactory<
T extends Object?> (InstanceBuilder< T> builder, {String? id}) → bool -
Register a
builder
function of theT
dependency with/withoutid
as DependencyMode.factory.inherited -
lazySingleton<
T extends Object?> (InstanceBuilder< T> builder, {String? id}) → bool -
Register a
builder
function of theT
dependency with/withoutid
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 giveninstance
.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
ofeventName
.inherited -
offAll(
Object? instance, [bool generic = false]) → 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 theT
dependency with/withoutid
.inherited -
singleton<
T extends Object?> (InstanceBuilder< T> builder, {String? id, Object? ref}) → T? -
Register a
builder
function of theT
dependency with/withoutid
as DependencyMode.singleton and creates the instance if it isn't already registered, else gets its instance only.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 anid
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 thecallback
function will not trigger any side effects.inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited