decodePath method

  1. @override
Object? decodePath(
  1. Map<String, List<String>> values
)
override

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