storageService top-level property

Storage storageService

Access the Storage object available in the current service scope.

The returned object will be the one which was previously registered with registerStorageService within the current (or a parent) service scope.

Accessing this getter outside of a service scope will result in an error. See the package:gcloud/service_scope.dart library for more information.

Implementation

Storage get storageService => ss.lookup(_storageKey) as Storage;