int? integer(String key) { String? value = raw(key); if (value == null) return null; return int.tryParse(value) ?? _invalid(key, 'an int', value); }