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': 1,
  r'$comment': 'https://api.flutter.dev/flutter/widgets/Text-class.html',
  'type': 'object',
  'title': 'Text',
  'additionalProperties': false,
  'required': [
    'text',
  ],
  'properties': {
    'locale': SchemaHelper.objectSchema(LocaleSchema.id),
    'maxLines': SchemaHelper.numberSchema,
    'overflow': SchemaHelper.objectSchema(TextOverflowSchema.id),
    'selectionColor': SchemaHelper.objectSchema(ColorSchema.id),
    'semanticsLabel': SchemaHelper.stringSchema,
    'softWrap': SchemaHelper.boolSchema,
    'strutStyle': SchemaHelper.objectSchema(StrutStyleSchema.id),
    'style': SchemaHelper.objectSchema(TextStyleSchema.id),
    'text': SchemaHelper.stringSchema,
    'textAlign': SchemaHelper.objectSchema(TextAlignSchema.id),
    'textDirection': SchemaHelper.objectSchema(TextDirectionSchema.id),
    'textHeightBehavior': SchemaHelper.objectSchema(
      TextHeightBehaviorSchema.id,
    ),
    'textScaleFactor': SchemaHelper.numberSchema,
    'textWidthBasis': SchemaHelper.objectSchema(TextWidthBasisSchema.id),
  }
};