getInt abstract method

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

Returns the value of the key as an integer.

If parsing fails or key doesn't exist, returns the defaultValue.

Implementation

int getInt(String key, {int defaultValue = 0});