# ScopeDesign constructor

ScopeDesign({

1. required String type,
2. required bool isSingleton,
3. required bool isPrototype,

})

Creates a ScopeDesign with the given `type`, `isSingleton`, and `isPrototype` flags.

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({
      required this.type,
      required this.isSingleton,
      required this.isPrototype,
    });