# isPrototype method

bool isPrototype()

Returns whether this factory creates prototype instances instead of singletons.

This method provides the inverse of isSingleton for clearer intent when dealing with prototype-scoped pods. It's particularly useful in contexts where prototype behavior is the focus.

## Return Value

- `true` if this factory creates new instances for each request (prototype scope)
- `false` if this factory reuses the same instance (singleton scope)

## Default Implementation

The default implementation returns `false`, meaning pods are singletons by default. Override this method to create prototype-scoped pods.

## Example

    class SessionFactory extends PodProvider<UserSession> {
      @override
      ObjectHolder<UserSession>? get() => UserSession();

      @override
      bool isPrototype() => true; // New session for each request

      @override
      bool isSingleton() => !isPrototype(); // Consistent with prototype setting
    }

## Consistency with isSingleton

Ensure this method is consistent with isSingleton:

    @override
    bool isPrototype() => !isSingleton();

## Implementation

    bool isPrototype() => false;