ChildDataScopeContainer<Parent extends Scope, Data extends Object> class
abstract
Combines ChildScopeContainer and DataScopeContainer.
ChildScopeContainer: Helps to have a parent in a scope. If the scope has a parent you can access parent dependencies within a current scope.
DataScopeContainer: Helps to have a initial data in a scope. If the scope has data, you can access it as a non-nullable value within current scope.
- Inheritance
-
- Object
- Scope
- BaseScopeContainer
- ChildDataScopeContainer
- Mixed-in types
-
- ChildScopeContainerMixin<
Parent> - DataScopeContainerMixin<
Data>
- ChildScopeContainerMixin<
Constructors
- ChildDataScopeContainer({required Parent parent, required Data data, String? name})
Properties
- data ↔ Data
-
Access data of the current BaseScopeContainer.
getter/setter pairinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
-
initializeQueue
→ List<
Set< AsyncDep> > -
A queue of the initialization for AsyncDep.
The order of the execution is the following:
Deps inside each Set are executed in parallel in random order —
if dependencies do not depend from each other then place them in Set.
Sets are executed in the order of the List — from 0 to the next and so on.
If some dependencies must be executed in specific order, consider placing
them in separate Sets and order relatively.
no setterinherited
- parent ↔ Parent
-
Access parent of the current BaseScopeContainer.
getter/setter pairinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
asyncDep<
Value extends AsyncLifecycle> (DepBuilder< Value> builder, {String? name}) → AsyncDep<Value> -
Exactly the same as BaseScopeContainer.dep but you only allowed
to declare AsyncLifecycle dependencies using this method.
inherited
-
dep<
Value> (DepBuilder< Value> builder, {String? name}) → Dep<Value> -
The only correct way to declare a Dep inside BaseScopeContainer.
Returns a factory for your
Value.inherited -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
rawAsyncDep<
Value> (DepBuilder< Value> builder, {required AsyncDepCallback<Value> init, required AsyncDepCallback<Value> dispose, String? name}) → AsyncDep<Value> -
Exactly the same as BaseScopeContainer.asyncDep but you must
declare init and dispose functions.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited