String requireParam(String name) { final p = optionalParam(name); if (p == null) { throw ArgumentError(); } return p; }