LogicRef<T> class

A reference to a business logic component.

Annotations

Constructors

LogicRef(InstanceFactory<T> create, {String? name})
Creates a reference to a business logic component.

Properties

create → InstanceFactory<T>
The function used to generate an instance.
final
hashCode int
The hash code for this object.
no setterinherited
key → BinderKey
Internal use.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
overrideWith(InstanceFactory<T> create) BinderOverride<T>
Overrides the logic component with a new factory. This can be useful for mocking purposes.
overrideWithSelf() BinderOverride<T>
Overrides the logic component with the same factory. This can be useful when we want to explicitely choose the scope where the logic is created. For example when we override a StateRef we also want to override any LogicRef, which will use this StateRef, under the same BinderScope.
toString() String
A string representation of this object.
inherited

Operators

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