8db3be7557
Invocation forwarders currently cannot distinguish a named parameter not passed from passed as `null`. Refactor `getNamedParameter` to return nullable index. When the index is not null it means that the named parameter is present, and its value may be `null`. This doesn't fix any of the existing tests so I added a regression test. (Bug originally discovered and fixed in https://dart-review.googlesource.com/c/sdk/+/278505) Change-Id: I960c674073b3d25c37e79f9836647882acaff08b Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/278745 Reviewed-by: Aske Simon Christensen <askesc@google.com> Commit-Queue: Ömer Ağacan <omersa@google.com> Reviewed-by: Joshua Litt <joshualitt@google.com>