e4bb5b608b
This will allow to detect unhandled types statically. The opportunity for the improvement was spotted while working on https://dart-review.googlesource.com/c/sdk/+/312264 Change-Id: Ie39f48833be4d0f9f65a14e58f42843cc49c8fa5 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/330424 Reviewed-by: Johnni Winther <johnniwinther@google.com> Commit-Queue: Chloe Stefantsova <cstefantsova@google.com>