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/painting/ImageProvider-class.html',
  'title': 'ImageProvider',
  'type': 'object',
  'additionalProperties': false,
  'required': [
    'type',
  ],
  'properties': {
    'assetName': SchemaHelper.stringSchema,
    'bytes': SchemaHelper.stringSchema,
    'headers': SchemaHelper.anySchema,
    'package': SchemaHelper.stringSchema,
    'scale': SchemaHelper.numberSchema,
    'url': SchemaHelper.stringSchema,
    'type': {
      'type': 'string',
      'enum': [
        'asset',
        'memory',
        'network',
      ],
    },
  },
};