# get method

Future<Object?> get(

1. String key

)

Returns the pod or contextual object for the given `key`, if any.

If the pod is not found in the factory, it attempts to resolve it from the scope.

Example:

    final context = PodExpressionContext(factory, scope);
    final pod = context.get("mypod");
    print(pod); // pod instance or null

## Implementation

    Future<Object?> get(String key) async {
      if (await podFactory.containsPod(key)) {
        return await podFactory.getPod(key);
      } else if (scope != null) {
        return scope!.resolveContextualObject(key);
      }

      return null;
    }