getInt method

int getInt(
  1. int idx
)

Gets an int or 0.

Implementation

int getInt(int idx) {
  return getIntOrNull(idx) ?? 0;
}