The Dart SDK is currently in experimental status. If you would like to provide feedback, please reach out to us with your suggestions and comments on our Discord.
Dart - kv.get()
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');