ConditionalDescriptor class
Descriptor for configuring conditional content type in the system.
Allows configuring:
- Available layouts for conditional content
- Custom layouts for specific use cases
Example:
final descriptor = ConditionalDescriptor(
layouts: [
DefaultConditionalLayout.typeDescriptor,
],
);
- Inheritance
-
- Object
- ContentDescriptor
- ConditionalDescriptor
Constructors
-
ConditionalDescriptor.new({List<
TypeDescriptor< ? layouts})LayoutConfiguration< >ContentItem> >
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