Get the value of a paramter by key as integer
key
int? getIntParam(String key) { var val = getParam(key); return val == null ? null : int.tryParse(val); }