dvFunctionStudioSections function

List<DVStudioSection> dvFunctionStudioSections({
  1. List<DVWorkflowPaletteItem> palette = const <DVWorkflowPaletteItem>[],
  2. DVFunctionStore? store,
  3. DVCodeFunctions? written,
})

The Frontend and Backend sections, for registering with DVStudioScreen: a function built in each, with the same builder.

DVStudioScreen(sections: dvFunctionStudioSections())

Backend takes the id of free Studio's list of backend functions, so it stands in that list's place rather than beside it.

Implementation

List<DVStudioSection> dvFunctionStudioSections({
  List<DVWorkflowPaletteItem> palette = const <DVWorkflowPaletteItem>[],
  DVFunctionStore? store,
  DVCodeFunctions? written,
}) =>
    <DVStudioSection>[
      for (final DVWorkflowSide side in DVWorkflowSide.values)
        dvWorkflowStudioSection(
          palette: palette,
          side: side,
          store: store,
          written: side == DVWorkflowSide.backend ? written : null,
        ),
    ];