From e9536b8ec89b7397bdfb01f2d5b21934ef4df690 Mon Sep 17 00:00:00 2001 From: Luke Pighetti Date: Fri, 17 Feb 2023 15:27:50 -0500 Subject: [PATCH] rename copyWith to copyWithShim --- lib/src/fluro_router.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/src/fluro_router.dart b/lib/src/fluro_router.dart index abba4cf..99bf1e7 100644 --- a/lib/src/fluro_router.dart +++ b/lib/src/fluro_router.dart @@ -154,7 +154,7 @@ class FluroRouter { RouteSettings settingsToUse = routeSettings ?? RouteSettings(name: path); if (settingsToUse.name == null) { - settingsToUse = settingsToUse.copyWith(name: path); + settingsToUse = settingsToUse.copyWithShim(name: path); } AppRouteMatch? match = _routeTree.matchRoute(path!); @@ -333,7 +333,7 @@ class FluroRouter { extension on RouteSettings { // shim for 3.5.0 breaking change // ignore: unused_element - RouteSettings copyWith({String? name, Object? arguments}) { + RouteSettings copyWithShim({String? name, Object? arguments}) { return RouteSettings( name: name ?? this.name, arguments: arguments ?? this.arguments,