schema property
Implementation
static final schema = {
r'$schema': 'http://json-schema.org/draft-07/schema#',
r'$id': id,
'title': 'EdgeInsets',
'oneOf': [
{
'type': 'string',
},
{
'type': 'number',
},
{
'type': 'array',
'array': [
{
'type': 'number',
},
]
},
{
'type': 'object',
'properties': {
'bottom': SchemaHelper.numberSchema,
'left': SchemaHelper.numberSchema,
'right': SchemaHelper.numberSchema,
'top': SchemaHelper.numberSchema,
},
},
],
};