CatalogEntries class

Which entry the guest is showing, and how it is told to show another.

The whole catalog is already in the program. The generated entrypoint imports every entry's wrapper — that is what makes one compiler safe to share — so the running guest can build any of them without being sent anything. That went unused until this existed: the entrypoint named one entry in a getter, and switching meant regenerating the file, recompiling it and hot-reloading the guest. Measured on a 100-entry catalog, that was 45ms of compile and 302ms of reload and reassemble, per entry, to move an integer.

So a switch is a message and a frame instead: ext.flutterware.showEntry moves the mounted state, and the entry remounts exactly as a reload made it remount — CatalogGuest resets the knobs, the axes, the errors and the logs off the same entryId change either way.

A reload still wins. The entrypoint on disk names an entry, and the panel switches demos by rewriting that name and reloading — so a runtime switch only holds while the file has not moved under it. The rebase is a plain assignment in didUpdateWidget, which is both the moment the new name arrives and the rebuild that was going to happen anyway; an ordinary source edit reloads with the same name and changes nothing here.

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
showing → String?
The entry the last frame built, or null before the first one.
no setter

Methods

build({required String fromFile, required Widget builder(BuildContext context, String entryId)}) → Widget
Builds whichever entry is current, rebasing on fromFile whenever a reload has regenerated the entrypoint under it.
install(Iterable<String> ids()) → void
Tells this which ids the program holds. Call once, before runApp.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
registerExtensions() → void
Registers the extension. Call once, before runApp.
show(String id) → String?
Shows id on the next frame, and reports what is on screen after the call.
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Properties

instance → CatalogEntries
final