decodePath method
Decodes this route's path parameters.
Implementation
@override
Object? decodePath(Map<String, List<String>> values) {
final codec = params;
if (codec == null) {
if (values.isNotEmpty) {
throw ParameterFormatException(
'Route "$path" declares dynamic segments without PathParams.',
);
}
return const NoParams();
}
return codec.decode(values);
}