# ObjectFactory<T> constructor

const ObjectFactory<T>()

A generic factory interface for producing instances of a given type `T`.

Used by JetLeaf and dependency injection containers to lazily create or retrieve instances of objects—especially in scenarios where you want to delay instantiation until explicitly requested.

Implementations may return new instances each time, or cache and return the same instance (singleton-style).

### Example

    class MyFactory implements ObjectFactory<Foo> {
      @override
      Foo get() => Foo();
    }

    final factory = MyFactory();
    final foo = factory.get();

In more complex scenarios, the factory might retrieve from a container:

    class PodFactoryObjectFactory implements ObjectFactory<MyService> {
      final PodFactory factory;

      PodFactoryObjectFactory(this.factory);

      @override
      MyService get() => factory.get<MyService>();
    }

## Implementation

    const ObjectFactory();