# get method

1. @override

FutureOr<ObjectHolder<T>> get([

1. List<ArgumentValue>? args

])
override

Retrieves the single object instance or throws if none or more than one found.

- NoSuchPodDefinitionException if no matching object exists.
- NoUniquePodDefinitionException if more than one matching object exists.

## Implementation

    @override
    FutureOr<ObjectHolder<T>> get([List<ArgumentValue>? args]) async {
      if(args?.isNotEmpty ?? false) {
        return await _get(args);
      }

      try {
        return super.get(args);
      } catch (e) {
        return await _get(args);
      }
    }