schema property

Map<String, Object> schema
final

Implementation

static final schema = {
  r'$schema': 'http://json-schema.org/draft-06/schema#',
  r'$id': '$id',
  r'$comment': 'https://api.flutter.dev/flutter/widgets/Icon-class.html',
  'type': 'object',
  'title': 'Icon',
  'additionalProperties': false,
  'required': [
    'icon',
  ],
  'properties': {
    'color': SchemaHelper.objectSchema(ColorSchema.id),
    'fill': SchemaHelper.numberSchema,
    'grade': SchemaHelper.numberSchema,
    'icon': SchemaHelper.objectSchema(IconDataSchema.id),
    'opticalSize': SchemaHelper.numberSchema,
    'semanticLabel': SchemaHelper.stringSchema,
    'shadows': SchemaHelper.arraySchema(ShadowSchema.id),
    'size': SchemaHelper.numberSchema,
    'textDirection': SchemaHelper.objectSchema(TextDirectionSchema.id),
    'weight': SchemaHelper.numberSchema,
  },
};