Skip to content

Commit 8224a3c

Browse files
committed
Rename RelativeGoRouteData location to subpath
1 parent 0d67bcc commit 8224a3c

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 location of this route, e.g. person/p1
319-
String get location => throw _GoRouteData.shouldBeGeneratedError;
318+
/// The subpath of this route, e.g. person/p1
319+
String get subpath => 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
@@ -481,7 +481,7 @@ void main() {
481481
}
482482

483483
await expectUnimplementedError((BuildContext context) {
484-
const _RelativeGoRouteDataBuild().location;
484+
const _RelativeGoRouteDataBuild().subpath;
485485
});
486486

487487
await expectUnimplementedError((BuildContext context) {

0 commit comments

Comments
 (0)