debugAssertOneOfPathOrRouteId function

void debugAssertOneOfPathOrRouteId(
  1. String? path,
  2. String? routeId
)

Implementation

void debugAssertOneOfPathOrRouteId(String? path, String? routeId) {
  assert(
    (path == null && routeId != null) || (path != null && routeId == null),
    'Either path or routeId must be specified, but not both.',
  );
}