getParameterIgnoreCase<V> method

V? getParameterIgnoreCase<V>(
  1. String name, [
  2. V? def
])

Returns from parameters a value for name or name1 .. name9 ignoring case. See getParameter.

Implementation

V? getParameterIgnoreCase<V>(String name, [V? def]) {
  var val = parameters[name];
  if (val != null) return val;

  for (var k in parameters.keys) {
    if (equalsIgnoreAsciiCase(k, name)) return parameters[k];
  }

  return def;
}