allParams property

Map<String, dynamic> allParams

All parameters on this sub-path and its children.

Implementation

Map<String, dynamic> get allParams {
  final Map<String, dynamic> params = {};

  void crawl(RoutingResult result) {
    params.addAll(result.params);

    if (result.nested?.isNotEmpty == true) {
      for (var r in result.nested) {
        crawl(r);
      }
    }
  }

  crawl(this);
  return params;
}