build method

Widget build({
  1. required String fromFile,
  2. required Widget builder(
    1. BuildContext context,
    2. 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);