getInt method

int? getInt(
  1. String key
)

Reads a value from persistent storage, throwing an exception if it's not an int.

Implementation

int? getInt(String key) => _preferenceCache[key] as int?;