notationTypes top-level constant

Map<String, ({Json node, String type})> const notationTypes

Short names: what an agent writes → the node type and what it implies.

Implementation

const Map<String, ({String type, Json node})> notationTypes = {
  'Input': (type: 'textField', node: {}),
  'Toggle': (type: 'switch', node: {}),
  'Select': (type: 'dropdown', node: {}),
  'Button': (type: 'filledButton', node: {}),
  'Progress': (type: 'progressBar', node: {}),
  'List': (type: 'column', node: {}),
  'Badge': (type: 'row', node: {}),
  // A grid of the children written under it: rows of `cols` equal cells.
  'Grid': (type: 'column', node: {}),
  'GridView': (type: 'column', node: {}),
  'Image': (type: 'box', node: {}),
  'Box': (type: 'column', node: {}),
  'Card': (type: 'column', node: {}),
  // Pages swiped across, one at a time: the lines under it are its pages
  // (or, under an `each`, one page per element).
  'Pages': (type: 'pageView', node: {}),
  // A part no component fits, built from plain parts under it; the line
  // names the component wanted for it (see [WantedBlock]).
  'Wanted': (type: 'column', node: {}),
};