InMemorySecretsStore class final

A SecretsStore backed by a plain map. This is the web/default implementation and is convenient in tests.

Implemented types

Constructors

InMemorySecretsStore([Map<String, String>? initial])
Creates a store pre-populated with initial.

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
readAll() Future<Map<String, String>>
Returns all secrets (name → value). Values must be treated as sensitive: never write them to logs, the LLM context, or disk.
override
remove(String name) → void
Removes a secret (no-op when absent).
set(String name, String value) → void
Adds or replaces a secret.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited