putInt abstract method

void putInt(
  1. String key,
  2. int value
)

Stores a 32-bit integer value under the key, replacing any existing value. key Key to set. value Value to store.

Example:

// Store integer values
_userStorage!.putInt("user_age", 25);
_userStorage!.putInt("login_count", 42);
print("Stored integer values");

Implementation

void putInt(String key, int value);