Skip to content

Commit

Permalink
rename copyWith to copyWithShim
Browse files Browse the repository at this point in the history
  • Loading branch information
lukepighetti committed Feb 17, 2023
1 parent 8b472f7 commit e9536b8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/src/fluro_router.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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!);
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit e9536b8

Please sign in to comment.