5493d42be3
This adds thrown exception in weak-mode for exhaustive switch expressions and statements to catch the unsound `null` values. Closes #51769 Closes #51053 Change-Id: Ieb89e65f51e84853510fc320b64db01a80a262ec Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/289600 Reviewed-by: Chloe Stefantsova <cstefantsova@google.com> Commit-Queue: Johnni Winther <johnniwinther@google.com>