getIntBy method
Implementation
int? getIntBy(List<String> ks, [String? fallbackKey]) {
for (var key in ks) {
var value = getInt(key);
if (value != null) return value;
}
if (fallbackKey != null) return getInt(fallbackKey);
return null;
}