scope property

ScopeDesign scope
getter/setter pairinherited

Defines the scope of the pod.

Describes the scope configuration of a component.

A scope determines the lifecycle behavior of the component. See {@macro scope_type}.

Example

final scope = ScopeDesign(
  type: ScopeType.SINGLETON,
  isSingleton: true,
  isPrototype: false,
);

print(scope.type); // ScopeType.SINGLETON
print(scope.isSingleton); // true

Implementation

ScopeDesign scope;