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/material/ScrollbarThemeData-class.html',
  'title': 'SwitchThemeData',
  'type': 'object',
  'properties': {
    'crossAxisMargin': SchemaHelper.numberSchema,
    'interactive': SchemaHelper.boolSchema,
    'isAlwaysShown': SchemaHelper.boolSchema,
    'mainAxisMargin': SchemaHelper.numberSchema,
    'minThumbLength': SchemaHelper.numberSchema,
    'radius': SchemaHelper.objectSchema(RadiusSchema.id),
    'showTrackOnHover': SchemaHelper.boolSchema,
    'thickness': {
      'anyOf': [
        {
          'type': 'number',
        },
        {
          'type': 'string',
        },
        {
          r'$ref': MaterialStatePropertyDoubleSchema.id,
        },
      ],
    },
    'thumbColor': SchemaHelper.objectSchema(
      MaterialStatePropertyColorSchema.id,
    ),
    'trackBorderColor': SchemaHelper.objectSchema(
      MaterialStatePropertyColorSchema.id,
    ),
    'trackColor': SchemaHelper.objectSchema(
      MaterialStatePropertyColorSchema.id,
    ),
    'trackVisibility': SchemaHelper.objectSchema(
      MaterialStatePropertyBoolSchema.id,
    ),
  },
};