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/material/PopupMenuButton-class.html',
'type': 'object',
'title': 'PopupMenuButton',
'additionalProperties': false,
'properties': {
'color': SchemaHelper.objectSchema(ColorSchema.id),
'constraints': SchemaHelper.objectSchema(BoxConstraintsSchema.id),
'elevation': SchemaHelper.numberSchema,
'enabled': SchemaHelper.boolSchema,
'enableFeedback': SchemaHelper.boolSchema,
'icon': SchemaHelper.objectSchema(JsonWidgetDataSchema.id),
'iconSize': SchemaHelper.numberSchema,
'initialValue': SchemaHelper.stringSchema,
'itemBuilder': SchemaHelper.stringSchema,
'offset': SchemaHelper.objectSchema(OffsetSchema.id),
'onCanceled': SchemaHelper.stringSchema,
'onSelected': SchemaHelper.stringSchema,
'padding': SchemaHelper.objectSchema(EdgeInsetsGeometrySchema.id),
'position': SchemaHelper.objectSchema(PopupMenuPositionSchema.id),
'shape': SchemaHelper.objectSchema(ShapeBorderSchema.id),
'splashRadius': SchemaHelper.numberSchema,
'tooltip': SchemaHelper.stringSchema,
}
};