pathParams property

Map<String, String> get pathParams

Path (segment) parameters of the current route only, e.g. :id in /user/:id (1.5.0). Query parameters are NOT included. Usage: String? id = Sint.pathParams['id'];

Implementation

Map<String, String> get pathParams {
  if (_shouldUseMock) {
    return {
      for (final e in SintTestMode.parameters.entries)
        if (e.value != null) e.key: e.value!,
    };
  }
  return rootController.rootDelegate.pathParams;
}