register static method
Register the catalog entries.
Call this BEFORE registerRoutes, typically from the consumer's
RouteServiceProvider.boot(). In release builds the guard in
registerRoutes short-circuits, so even if entries are registered they
are never wired into a route and stay tree-shakeable.
Implementation
static void register(List<PreviewEntry> entries) {
// Defensively snapshot into an unmodifiable list so later mutation of the
// caller's list cannot change the registered catalog after the fact.
_entries = List.unmodifiable(entries);
}