readInt function
- Map<
String, PropertyValue> props, - String key,
- int fallback
Reads an int property, or returns fallback.
Implementation
int readInt(Map<String, PropertyValue> props, String key, int fallback) {
final v = props[key];
return v is IntValue ? v.value : fallback;
}