Helper to get a path parameter as an integer.
int? paramInt(String key, [int? defaultValue]) => request.paramInt(key, defaultValue);