Dart - kv.get()
This is reference documentation for the Nitric Dart SDK. To learn about Key/Value Stores in Nitric start with the Key/Value Store docs.
Get a value from a key value store.
import 'package:nitric_sdk/nitric.dart';final profiles = Nitric.kv("profiles").allow([KeyValueStorePermission.get,]);final profile = await profiles.get('profile-1a2b3c');
Parameters
- Name
key
- Required
- Required
- Type
- String
- Description
The key that references the key value pair that should be retrieved.
Examples
Get a key value pair
import 'package:nitric_sdk/nitric.dart';final profiles = Nitric.kv("profiles").allow([KeyValueStorePermission.get,]);final profile = await profiles.get('profile-1a2b3c');
Last updated on Apr 3, 2025