CardDescriptor class

Descriptor for configuring card content type in the system.

Allows configuring:

  • Available layouts for cards (default, list item, button)
  • Custom layouts for specific use cases

Example:

final descriptor = CardDescriptor(
  layouts: [
    DefaultCardLayout.typeDescriptor,
    ListItemCardLayout.typeDescriptor,
  ],
);
Inheritance
  • Object
  • ContentDescriptor
  • CardDescriptor

Constructors

CardDescriptor.new({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