getInt method

int getInt(
  1. String key
)

Gets an int or 0.

Implementation

int getInt(String key) {
  return getIntOrNull(key) ?? 0;
}