datastoreService top-level property

Datastore get datastoreService

Access the Datastore object available in the current service scope.

The returned object will be the one which was previously registered with registerDatastoreService 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

Datastore get datastoreService => ss.lookup(_datastoreKey) as Datastore;