84aa0207cf
Update source code in tests to be migrated to null safety. Tests are still running in unsound null safety. In most cases types are now inferred to be non-nullable so the code that makes expressions to be seen as nullable now require `as dynamic` to allow them to compile. Update nullable inference logic to recognize `.toString()` on a String as non-nullable in code that has been migrated to null safety. Change-Id: Id0771cc5317e3dafbf10e766b80d2994752bacc8 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/337700 Commit-Queue: Nicholas Shahan <nshahan@google.com> Reviewed-by: Mark Zhou <markzipan@google.com>