getObject abstract method
Retrieves a pod as a generic Object by its type with optional arguments.
Similar to getNamedObject
but uses type-based lookup instead of name-based.
Usage Example:
final pod = await factory.getObject(Class<DataProcessor>());
if (pod is DataProcessor) {
pod.processData();
}
@param type The class type 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> getObject(Class<Object> type, [List<ArgumentValue>? args]);