@@ -1633,7 +1633,7 @@ public Route _routeNamed(string name, object arguments, bool allowNull = false)
1633
1633
return route ;
1634
1634
}
1635
1635
1636
- public Route < T > _routeNamed < T > ( string name , object arguments , bool allowNull = false ) {
1636
+ public Route _routeNamed < T > ( string name , object arguments , bool allowNull = false ) {
1637
1637
D . assert ( ! _debugLocked ) ;
1638
1638
D . assert ( name != null ) ;
1639
1639
if ( allowNull && widget . onGenerateRoute == null )
@@ -1657,8 +1657,7 @@ public Route<T> _routeNamed<T>(string name, object arguments, bool allowNull = f
1657
1657
arguments : arguments
1658
1658
) ;
1659
1659
1660
- var routeee = widget . onGenerateRoute ( settings ) ;
1661
- Route < T > route = routeee as Route < T > ;
1660
+ Route route = widget . onGenerateRoute ( settings ) ;
1662
1661
if ( route == null && ! allowNull ) {
1663
1662
D . assert ( ( ) => {
1664
1663
if ( widget . onUnknownRoute == null ) {
@@ -1673,7 +1672,7 @@ public Route<T> _routeNamed<T>(string name, object arguments, bool allowNull = f
1673
1672
1674
1673
return true ;
1675
1674
} ) ;
1676
- route = widget . onUnknownRoute ( settings ) as Route < T > ;
1675
+ route = widget . onUnknownRoute ( settings ) ;
1677
1676
D . assert ( ( ) => {
1678
1677
if ( route == null ) {
1679
1678
throw new UIWidgetsError (
@@ -1811,7 +1810,7 @@ void _afterNavigation(Route route) {
1811
1810
1812
1811
1813
1812
1814
- public Future < T > pushReplacement < T , TO > ( Route < T > newRoute , TO result ) {
1813
+ public Future < T > pushReplacement < T , TO > ( Route newRoute , TO result ) {
1815
1814
D . assert ( ! _debugLocked ) ;
1816
1815
D . assert ( ( ) => {
1817
1816
_debugLocked = true ;
@@ -1882,7 +1881,7 @@ public Future pushReplacement(Route newRoute, object result) {
1882
1881
}
1883
1882
1884
1883
1885
- public Future < T > pushAndRemoveUntil < T > ( Route < T > newRoute , RoutePredicate predicate ) {
1884
+ public Future < T > pushAndRemoveUntil < T > ( Route newRoute , RoutePredicate predicate ) {
1886
1885
D . assert ( ! _debugLocked ) ;
1887
1886
D . assert ( ( ) => {
1888
1887
_debugLocked = true ;
0 commit comments