ResourceSchema constructor

const ResourceSchema({
  1. required String key,
  2. required ResourceLabels labels,
  3. ResourcePermissions permissions = const ResourcePermissions(),
  4. String recordKey = 'id',
  5. CardLayout card = const CardLayout.empty(),
  6. ResourceSearch search = const ResourceSearch(),
  7. List<ResourceSort> sorts = const [],
  8. List<SchemaComponent> filters = const [],
  9. List<SchemaComponent> form = const [],
  10. List<SchemaComponent> infolist = const [],
  11. List<RelationDescriptor> relations = const [],
  12. String? group,
  13. ResourceBadge? badge,
  14. PanelDirection direction = PanelDirection.ltr,
  15. List<String> locales = const [],
  16. PollConfig? poll,
  17. String? channel,
  18. 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,
});