PartConnector class
Class containing instance part type to connect to given instance
class PostViewModel extends BaseViewModel<PostView, PostViewState> {
@override
DependentMvvmInstanceConfiguration get configuration =>
DependentMvvmInstanceConfiguration(
parts: [
app.connectors.testUniversalInteractorPartConnector(),
app.connectors.testInteractorPartConnector(input: input.id),
],
);
}
Constructors
Properties
- awaitInitialization → bool
-
This flag indicates that app creation process will await initialization of this instance.
Only matters for async singleton instances.
finalinherited
- count → int
-
Count of instances to be connected. Defaults to 1
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- initializationOrder → int?
-
Initialization order for this instance.
Only matters for singletons with isAsync
and awaitInitialization set to true
finalinherited
- input → dynamic
-
Input for connected instance
finalinherited
- inputForIndex → dynamic Function(int)?
-
Same as input, but if count provided
allows to pass unique input to every instance
finalinherited
- isAsync → bool
-
Flag indicating that instance is async
finalinherited
- isLazy → bool
-
Flag indicating that this connector is lazy. If set to true instances
need to be obtained with DependentMvvmInstance.getLazyLocalInstance
and DependentMvvmInstance.getAsyncLazyLocalInstance instead of DependentMvvmInstance.getLocalInstance
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scope → String
-
Scope in whith instance should be obtained. Defaults to BaseScopes.weak.
finalinherited
- type → Type
-
Actual type of instance to connect
finalinherited
- withoutConnections → bool
-
Flag indicating that instance needs to be
connected without initalization of dependencies and event bus subscription
finalinherited
Methods
-
copyWithScope(
String scope) → Connector -
Returns copy if this connector with overriden scope value
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited