Skip to content

Commit 03aed74

Browse files
committed
Rename subpath to subLocation
1 parent a12914b commit 03aed74

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

packages/go_router/lib/src/route_data.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -315,8 +315,8 @@ abstract class RelativeGoRouteData extends _GoRouteData {
315315
'GoRouteState to RelativeGoRouteData expando',
316316
);
317317

318-
/// The subpath of this route, e.g. person/p1
319-
String get subpath => throw _GoRouteData.shouldBeGeneratedError;
318+
/// The sub-location of this route, e.g. person/p1
319+
String get subLocation => throw _GoRouteData.shouldBeGeneratedError;
320320

321321
/// The relative location of this route, e.g. ./person/p1
322322
String get relativeLocation => throw _GoRouteData.shouldBeGeneratedError;

packages/go_router/test/route_data_test.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -463,7 +463,7 @@ void main() {
463463
}
464464

465465
await expectUnimplementedError((BuildContext context) {
466-
const _RelativeGoRouteDataBuild().subpath;
466+
const _RelativeGoRouteDataBuild().subLocation;
467467
});
468468

469469
await expectUnimplementedError((BuildContext context) {

0 commit comments

Comments
 (0)