# BootstrapInstanceSupplier<T> constructor

const BootstrapInstanceSupplier<T>()

A supplier that can create instances based on a BootstrapContext, with optional scoping support.

This abstraction supports two main use cases:

- Supplying constant instances via of
- Supplying dynamic instances via a factory from

The default scope is ScopeType.SINGLETON.

Example:

    final supplier = InstanceSupplier.from(() => MyService());
    final instance = supplier.get(context);

## Implementation

    const BootstrapInstanceSupplier();