getLong abstract method

int getLong(
  1. String key,
  2. int defaultValue
)

Gets a 64-bit integer value. Returns defaultValue if the key is missing or the stored type is not long. @param key Lookup key. @param defaultValue Value to return when not found or type mismatch. @return Stored int64 or defaultValue.

Dart code snippet: @snippet storage_manager_example.dart dart_KeyValueStorage_getLong

Implementation

int getLong(String key, int defaultValue);