Fixes https://github.com/dart-lang/sdk/issues/48730 Change-Id: I4c7f687ec8d2724de0e031aa5ebe887f93843761 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/254101 Reviewed-by: Sigmund Cherem <sigmund@google.com> Reviewed-by: Johnni Winther <johnniwinther@google.com>