diff --git a/examples/stocks/lib/stock_home.dart b/examples/stocks/lib/stock_home.dart index be55df4300..0fc8f4a72f 100644 --- a/examples/stocks/lib/stock_home.dart +++ b/examples/stocks/lib/stock_home.dart @@ -41,8 +41,8 @@ class StockHomeState extends State { } void _handleSearchEnd() { - assert(config.navigator.currentRoute is RouteState); - assert((config.navigator.currentRoute as RouteState).owner == this); // TODO(ianh): remove cast once analyzer is cleverer + assert(config.navigator.currentRoute is StateRoute); + assert((config.navigator.currentRoute as StateRoute).owner == this); // TODO(ianh): remove cast once analyzer is cleverer config.navigator.pop(); setState(() { _isSearching = false;