schema property

Map<String, Object> schema
final

Implementation

static final schema = {
  r'$schema': 'http://json-schema.org/draft-06/schema#',
  r'$id': id,
  r'$children': 0,
  r'$comment': 'https://api.flutter.dev/flutter/widgets/RichText-class.html',
  'type': 'object',
  'title': 'RichText',
  'additionalProperties': false,
  'required': [
    'text',
  ],
  'properties': {
    'locale': SchemaHelper.objectSchema(LocaleSchema.id),
    'maxLines': SchemaHelper.numberSchema,
    'overflow': SchemaHelper.objectSchema(TextOverflowSchema.id),
    'selectionColor': SchemaHelper.objectSchema(ColorSchema.id),
    'selectionRegistrar': SchemaHelper.stringSchema,
    'softWrap': SchemaHelper.boolSchema,
    'strutStyle': SchemaHelper.objectSchema(StrutStyleSchema.id),
    'text': SchemaHelper.objectSchema(TextSpanSchema.id),
    'textAlign': SchemaHelper.objectSchema(TextAlignSchema.id),
    'textDirection': SchemaHelper.objectSchema(TextDirectionSchema.id),
    'textHeightBehavior':
        SchemaHelper.objectSchema(TextHeightBehaviorSchema.id),
    'textScaleFactor': SchemaHelper.numberSchema,
    'textWidthBasis': SchemaHelper.objectSchema(TextWidthBasisSchema.id),
  }
};