schema property

Map<String, Object> schema
final

Implementation

static final schema = <String, Object>{
  r'$schema': 'http://json-schema.org/draft-07/schema#',
  r'$id': id,
  'title': 'RichText',
  'type': 'object',
  'additionalProperties': false,
  'properties': {
    'locale': SchemaHelper.objectSchema(LocaleSchema.id),
    'maxLines': SchemaHelper.numberSchema,
    'overflow': SchemaHelper.objectSchema(TextOverflowSchema.id),
    'selectionColor': SchemaHelper.objectSchema(ColorSchema.id),
    'selectionRegistrar': SchemaHelper.anySchema,
    'softWrap': SchemaHelper.boolSchema,
    'strutStyle': SchemaHelper.objectSchema(StrutStyleSchema.id),
    'text': SchemaHelper.anySchema,
    'textAlign': SchemaHelper.objectSchema(TextAlignSchema.id),
    'textDirection': SchemaHelper.objectSchema(TextDirectionSchema.id),
    'textHeightBehavior':
        SchemaHelper.objectSchema(TextHeightBehaviorSchema.id),
    'textScaleFactor': SchemaHelper.numberSchema,
    'textScaler': SchemaHelper.anySchema,
    'textWidthBasis': SchemaHelper.objectSchema(TextWidthBasisSchema.id),
  },
};