Fix `Navigator.pushNamed<T>()` type checking (#188148)
This PR allows the navigator's `pushNamed()` method to be called with any type argument without immediately throwing an error. It also brings the framework more in line with the [style guide](https://github.com/flutter/flutter/blob/master/docs/contributing/Style-guide-for-Flutter-repo.md#prefer-explicit-types-and-avoid-dynamic): > Avoid `dynamic`. If the type is unknown, prefer using `Object` (or `Object?`) and casting <br> Fixes #57186
N
Nate Wilson committed
c18aa809e85baad5b3ab99d72530d57fdc5e05c5
Parent: 76fbda5
Committed by GitHub <noreply@github.com>
on 8/26/2026, 7:50:44 PM