putString abstract method

void putString(
  1. String key,
  2. String value
)

Stores a string value under the key, replacing any existing value. key Key to set. value Value to store.

Example:

// Store string values
_userStorage!.putString("user_name", "John Doe");
_userStorage!.putString("user_email", "john.doe@example.com");
print("Stored string values");

Implementation

void putString(String key, String value);