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; } }