getNamedObject abstract method

Future<Object> getNamedObject(
  1. String podName, [
  2. List<ArgumentValue>? args
])
inherited

Retrieves a pod as a generic Object by its name with optional arguments.

This method is useful when the exact type of the pod is not known at compile time or when working with dynamic pod retrieval scenarios.

Usage Example:

final pod = await factory.getNamedObject('dataProcessor');
if (pod is DataProcessor) {
  pod.processData();
}

@param podName The name of the pod to retrieve @param args Optional list of argument values for pod construction @return A Future that completes with the pod instance as Object

Implementation

Future<Object> getNamedObject(String podName, [List<ArgumentValue>? args]);