childrenCountConnected<TChildRouteParam extends AFRouteParam> method

int childrenCountConnected<TChildRouteParam extends AFRouteParam>()
inherited

Returns the number of connected children that have a route parameter of the specified type.

Implementation

int childrenCountConnected<TChildRouteParam extends AFRouteParam>() {
  final childrenN = children;
  if(childrenN == null) {
    return 0;
  }
  return childrenN.countOfChildren<TChildRouteParam>();
}