Reads an integer value from the source, and if not found, returns the provided defaultValue.
defaultValue
int readInt(source, key, {int defaultValue = -1}) { return tryReadInt(source, key) ?? defaultValue; }