Fixes https://github.com/dart-lang/sdk/issues/47035 Change-Id: I745da785d80744f84e3582727e423e4caed866c0 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/211720 Reviewed-by: Brian Wilkerson <brianwilkerson@google.com> Commit-Queue: Samuel Rawlins <srawlins@google.com>