put method

Future<void> put(
  1. CalljmpStoreKey key,
  2. String value
)

Stores a value in secure storage.

key The storage key to store the value under. value The value to store securely.

Returns a Future that completes when the value is stored.

Throws UnimplementedError if not implemented by platform-specific code.

Example

await CalljmpStore.instance.put(
  CalljmpStoreKey.accessToken,
  'jwt_token_string'
);

Implementation

Future<void> put(CalljmpStoreKey key, String value) {
  throw UnimplementedError('put() has not been implemented.');
}