uaestats_fe/lib/infrastructure/services/packages/go_router.dart
2026-05-16 11:31:32 +05:30

12 lines
315 B
Dart
Executable File

import 'package:go_router/go_router.dart';
extension PathMaker on GoRouterState {
String get pathWithParameters {
String amendedPath = fullPath!;
for (final param in pathParameters.entries) {
amendedPath = amendedPath.replaceFirst(':${param.key}', param.value);
}
return amendedPath;
}
}