build method
Widget
build({
- required String fromFile,
- required Widget builder(
- BuildContext context,
- String entryId
Builds whichever entry is current, rebasing on fromFile whenever a
reload has regenerated the entrypoint under it.
builder is the generated entrypoint's own: resolving an id to a demo
needs the table of imports, which only that file has.
Implementation
Widget build({
required String fromFile,
required Widget Function(BuildContext context, String entryId) builder,
}) =>
_CatalogEntrySwitch(entries: this, fromFile: fromFile, builder: builder);