GroupDescriptor class

Descriptor for configuring group content type in the system.

Allows configuring:

  • Available layouts for groups (default, grid, list, carousel)
  • Custom layouts for specific use cases

Example:

final descriptor = GroupDescriptor(
  layouts: [
    DefaultGroupLayout.typeDescriptor,
    GridGroupLayout.typeDescriptor,
    CarouselGroupLayout.typeDescriptor,
  ],
);
Inheritance
  • Object
  • ContentDescriptor
  • GroupDescriptor

Constructors

GroupDescriptor({List<TypeDescriptor<LayoutConfiguration<ContentItem>>>? layouts})

Properties

hashCode → int
The hash code for this object.
no setterinherited
layouts → List<TypeDescriptor<LayoutConfiguration<ContentItem>>>?
finalinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
schemaType → String
finalinherited
sourceFeature → String?
The feature that this content descriptor was registered by.
no setterinherited
title → String
finalinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setSourceFeature(String? featureName) → void
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited