# copyWithScope method

ScopedObjectFactory<T> copyWithScope({

1. String? name,
2. PodScope? scope,
3. ObjectFactory<T>? fallbackFactory,

})

Creates a copy of this ScopedObjectFactory with optional modifications.

This method is useful for creating variations of the factory with different parameters while maintaining the same basic configuration.

`name`: Optional new pod name (uses current if null) `scope`: Optional new scope (uses current if null) `fallbackFactory`: Optional new fallback factory (uses current if null) Returns a new ScopedObjectFactory instance with the specified properties

Example:

    // Create a factory for a different pod in the same scope
    final otherFactory = scopedFactory.copyWith(name: 'otherService');

    // Create a factory for the same pod in a different scope
    final sessionFactory = scopedFactory.copyWith(scope: sessionScope);

## Implementation

    ScopedObjectFactory<T> copyWithScope({String? name, PodScope? scope, ObjectFactory<T>? fallbackFactory}) {
      return ScopedObjectFactory<T>(
        name ?? this.name,
        scope ?? this.scope,
        fallbackFactory ?? this.fallbackFactory,
      );
    }