tryReadInt method
Tries to read an integer value from the source. If the value is not an
integer, it returns null
.
Implementation
int? tryReadInt(source, key) {
var value = readValue(source, key);
return isInt(value) ? value as int : null;
}
Tries to read an integer value from the source. If the value is not an
integer, it returns null
.
int? tryReadInt(source, key) {
var value = readValue(source, key);
return isInt(value) ? value as int : null;
}