dvStudioLayoutLabel function

String dvStudioLayoutLabel(
  1. String layout
)

What the palette calls layout.

Derived rather than listed, so a layout added above appears in the palette without a second list to keep in step. Only the column needs saying: its name in a document is list, because it is the default and a page written before there were others has no layout at all.

Implementation

String dvStudioLayoutLabel(String layout) => switch (layout) {
      'list' => 'Column',
      _ => layout[0].toUpperCase() + layout.substring(1),
    };