notationTypes top-level constant
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: {}),
// The words a model reaches for unprompted for a round meter, a round
// share and a small trend line (design 16: asked with no vocabulary, it
// writes gauge, dial, ring, sparkline).
'Gauge': (type: 'radialGauge', node: {}),
'Dial': (type: 'radialGauge', node: {}),
'Ring': (type: 'circularProgressIndicator', node: {}),
'Sparkline': (type: 'lineChart', node: {}),
// Shares of a whole, and a line chart that fills under its line.
'Donut': (type: 'chart', node: {}),
'DonutChart': (type: 'chart', node: {}),
'PieChart': (type: 'chart', node: {}),
'Pie': (type: 'chart', node: {}),
'AreaChart': (type: 'lineChart', node: {}),
// A person as a round mark: their initials, or their picture.
'Avatar': (type: 'column', 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: {}),
};