# isSingleton method

bool isSingleton()

Returns whether this factory creates singleton or prototype instances.

This method controls the lifecycle of objects created by this factory:

- `true`: The container will cache the first instance and return it for all subsequent requests
- `false`: The container will call get for each request, creating new instances

## Default Implementation

The default implementation returns `true`, making objects singletons by default. This is the most common use case and provides better performance.

## Example - Singleton Factory

    @override
    bool isSingleton() => true; // Default behavior

## Example - Prototype Factory

    class SessionFactory implements PodProvider<UserSession> {
      @override
      UserSession? get() => UserSession(); // New session each time

      @override
      bool isSingleton() => false; // Create new instances
    }

## Performance Considerations

- Singleton factories are more efficient for expensive-to-create objects
- Prototype factories are necessary for stateful objects that cannot be shared

## Implementation

    bool isSingleton() => true;