95613f5d07
Fixes https://github.com/dart-lang/sdk/issues/60416 There was discussion about expanding the purview of this lint rule, and `Object`- or `dynamic`-returning functions do not need their return type changed, so the fix does not change that behavior. Change-Id: I835732d6ab25dd85142f8763624eda2d9293e003 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/497840 Commit-Queue: Samuel Rawlins <srawlins@google.com> Reviewed-by: Konstantin Shcheglov <scheglov@google.com>