valueForms top-level constant

Map<String, String> const valueForms

The JSON forms each value type reads, as a reader would write them.

Implementation

const Map<String, String> valueForms = {
  'Color': '"#AARRGGBB" or "#RRGGBB" (hex, alpha first)',
  'EdgeInsets': 'a number (all sides) or [left, top, right, bottom]',
  'BorderRadius': 'a number (every corner), [x, y] (every corner elliptical) or [topLeft, topRight, bottomRight, bottomLeft] (each a number or [x, y])',
  'Alignment': '[x, y] from -1 to 1, or a name: topLeft, topCenter, topRight, centerLeft, center, centerRight, bottomLeft, bottomCenter, bottomRight',
  'Offset': '[dx, dy]',
  'BoxConstraints': '{"minWidth", "maxWidth", "minHeight", "maxHeight"} (each optional, numbers >= 0)',
  'AxisSize': 'a number (fixed) or {"fill"|"flexible"|"hug"|"fixed": number}',
  'AxisPosition': 'a number (distance from the start) or {"start": d}, {"end": d}, {"start": a, "end": b}, {"align": -1..1}, {"relative": d}',
  'FontWeight': '100, 200 ... 900',
  'FontFeature': 'an OpenType tag ("tnum", "ss01") or "tag=value" ("liga=0")',
  'Rect': '[left, top, width, height]',
  'IconData': 'a Material icon name ("check_circle", "lock_open_rounded"), an image URL, or {"type": "MATERIAL_ICON", "name", "style"}',
  'Size': '[width, height]',
};