schema property
Implementation
static final schema = {
r'$schema': 'http://json-schema.org/draft-06/schema#',
r'$id': '$id',
r'$comment': 'https://api.flutter.dev/flutter/widgets/ListView-class.html',
'title': 'ListView',
'oneOf': [
{
'type': 'null',
},
{
'type': 'object',
'additionalProperties': false,
'properties': {
'addAutomaticKeepAlives': SchemaHelper.boolSchema,
'addRepaintBoundaries': SchemaHelper.boolSchema,
'addSemanticIndexes': SchemaHelper.boolSchema,
'cacheExtent': SchemaHelper.numberSchema,
'clipBehavior': SchemaHelper.objectSchema(ClipSchema.id),
'controller': SchemaHelper.stringSchema,
'dragStartBehavior':
SchemaHelper.objectSchema(DragStartBehaviorSchema.id),
'itemExtent': SchemaHelper.numberSchema,
'keyboardDismissBehavior': SchemaHelper.objectSchema(
ScrollViewKeyboardDismissBehaviorSchema.id,
),
'padding': SchemaHelper.objectSchema(EdgeInsetsGeometrySchema.id),
'physics': SchemaHelper.objectSchema(ScrollPhysicsSchema.id),
'primary': SchemaHelper.boolSchema,
'prototypeItem': SchemaHelper.objectSchema(JsonWidgetDataSchema.id),
'restorationId': SchemaHelper.stringSchema,
'reverse': SchemaHelper.boolSchema,
'scrollDirection': SchemaHelper.objectSchema(AxisSchema.id),
'shrinkWrap': SchemaHelper.boolSchema,
},
},
],
};