# contains method

Future<bool> contains(

1. String key

)

Returns `true` if the given `key` is a pod in the factory or a contextual object in the scope.

Example:

    final context = PodExpressionContext(factory, scope);
    final contains = context.contains("mypod");
    print(contains); // true/false

## Implementation

    Future<bool> contains(String key) async => (await podFactory.containsPod(key) || (scope != null && scope!.resolveContextualObject(key) != null));