intValue method
Implementation
int intValue(String key, [int defValue = -1]) {
if (!containsKey(key)) {
return defValue;
} else if (this[key] is int) {
return this[key];
} else if (this[key] is String) {
return int.parse(this[key]);
} else {
return defValue;
}
}