putBool abstract method

void putBool(
  1. String key,
  2. bool value
)

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

Example:

// Store boolean values
_userStorage!.putBool("is_premium", true);
_userStorage!.putBool("notifications_enabled", false);
print("Stored boolean values");

Implementation

void putBool(String key, bool value);