Card constructor

Card({
  1. required String? title,
  2. required String? description,
  3. PortableTextContent? content,
  4. ImageReference? image,
  5. Uri? imageUrl,
  6. Action? action,
  7. Action? secondaryAction,
  8. Action? tertiaryAction,
  9. LayoutConfiguration<ContentItem>? layout,
})

Implementation

Card({
  required this.title,
  required this.description,
  this.content,
  this.image,
  this.imageUrl,
  this.action,
  this.secondaryAction,
  this.tertiaryAction,
  super.layout,
}) : super(schemaType: Card.schemaName) {
  setParent([
    if (content != null) content!,
  ]);
}