It looks like we're missing some state that should be cleared, but we had to revert https://dart-review.googlesource.com/c/sdk/+/152581 due to issues in Flutter: https://github.com/flutter/flutter/issues/60286