ResourceSchema constructor
const
ResourceSchema({
- required String key,
- required ResourceLabels labels,
- ResourcePermissions permissions = const ResourcePermissions(),
- String recordKey = 'id',
- CardLayout card = const CardLayout.empty(),
- ResourceSearch search = const ResourceSearch(),
- List<
ResourceSort> sorts = const [], - List<
SchemaComponent> filters = const [], - List<
SchemaComponent> form = const [], - List<
SchemaComponent> infolist = const [], - List<
RelationDescriptor> relations = const [], - String? group,
- ResourceBadge? badge,
- PanelDirection direction = PanelDirection.ltr,
- List<
String> locales = const [], - PollConfig? poll,
- String? channel,
- ReorderConfig? reorder,
Implementation
const ResourceSchema({
required this.key,
required this.labels,
this.permissions = const ResourcePermissions(),
this.recordKey = 'id',
this.card = const CardLayout.empty(),
this.search = const ResourceSearch(),
this.sorts = const [],
this.filters = const [],
this.form = const [],
this.infolist = const [],
this.relations = const [],
this.group,
this.badge,
this.direction = PanelDirection.ltr,
this.locales = const [],
this.poll,
this.channel,
this.reorder,
});