diff --git a/packages/route/lib/src/middleware_pipeline.dart b/packages/route/lib/src/middleware_pipeline.dart index beccba7d..97da1a33 100644 --- a/packages/route/lib/src/middleware_pipeline.dart +++ b/packages/route/lib/src/middleware_pipeline.dart @@ -35,7 +35,7 @@ class MiddlewarePipeline { } /// Iterates through a [MiddlewarePipeline]. -class MiddlewarePipelineIterator extends Iterator> { +class MiddlewarePipelineIterator implements Iterator> { final MiddlewarePipeline pipeline; final Iterator> _inner; diff --git a/packages/route/lib/src/routing_exception.dart b/packages/route/lib/src/routing_exception.dart index bceb6cb5..4dd9b756 100644 --- a/packages/route/lib/src/routing_exception.dart +++ b/packages/route/lib/src/routing_exception.dart @@ -1,5 +1,5 @@ /// Represents an error in route configuration or navigation. -abstract class RoutingException extends Exception { +abstract class RoutingException implements Exception { factory RoutingException(String message) => _RoutingExceptionImpl(message); /// Occurs when trying to resolve the parent of a [Route] without a parent.