This commit is contained in:
toly
2023-11-26 09:04:44 +08:00
parent 6e8d926693
commit 2ceed8b9b5
20 changed files with 597 additions and 18 deletions

View File

@@ -10,6 +10,7 @@ class IRouteConfig {
final Object? extra;
final bool forResult;
final Uri uri;
final Map<String,String>? pathParams;
final bool keepAlive;
final RouteStyle routeStyle;
final bool recordHistory;
@@ -18,12 +19,13 @@ class IRouteConfig {
this.extra,
required this.uri,
this.forResult = false,
this.pathParams,
this.keepAlive = false,
this.routeStyle = RouteStyle.replace,
this.recordHistory = false,
});
String get path => uri.path;
String get path => uri.toString();
IRouteConfig copyWith({
Object? extra,