integer method Null safety
- String key
Returns the value for the given key
as an integer number.
Returns a default value (integer: 0
, double: 0.0
, boolean: false
)
if the value is not a of the expected typ, is null
or does not exist
for the given key
.
Implementation
int integer(String key);