getInt static method

int getInt(
  1. String key, {
  2. int defaultValue = 0,
})

Returns an int value associated with the given key, or defaultValue if the key is not found.

Implementation

static int getInt(String key, {int defaultValue = 0}) =>
    _instance.getInt(key) ?? defaultValue;