schema property
Implementation
static final schema = <String, Object>{
r'$schema': 'http://json-schema.org/draft-07/schema#',
r'$id': id,
'title': 'IconButton',
'type': 'object',
'additionalProperties': false,
'properties': {
'alignment': SchemaHelper.objectSchema(AlignmentGeometrySchema.id),
'autofocus': SchemaHelper.boolSchema,
'color': SchemaHelper.objectSchema(ColorSchema.id),
'constraints': SchemaHelper.objectSchema(BoxConstraintsSchema.id),
'disabledColor': SchemaHelper.objectSchema(ColorSchema.id),
'enableFeedback': SchemaHelper.boolSchema,
'focusColor': SchemaHelper.objectSchema(ColorSchema.id),
'focusNode': SchemaHelper.anySchema,
'highlightColor': SchemaHelper.objectSchema(ColorSchema.id),
'hoverColor': SchemaHelper.objectSchema(ColorSchema.id),
'icon': SchemaHelper.objectSchema(JsonWidgetDataSchema.id),
'iconSize': SchemaHelper.numberSchema,
'isSelected': SchemaHelper.boolSchema,
'mouseCursor': SchemaHelper.objectSchema(MouseCursorSchema.id),
'onPressed': SchemaHelper.anySchema,
'padding': SchemaHelper.objectSchema(EdgeInsetsGeometrySchema.id),
'selectedIcon': SchemaHelper.objectSchema(JsonWidgetDataSchema.id),
'splashColor': SchemaHelper.objectSchema(ColorSchema.id),
'splashRadius': SchemaHelper.numberSchema,
'style': SchemaHelper.objectSchema(ButtonStyleSchema.id),
'tooltip': SchemaHelper.stringSchema,
'visualDensity': SchemaHelper.objectSchema(VisualDensitySchema.id),
},
};