Card constructor
Card({
- required String? title,
- required String? description,
- PortableTextContent? content,
- ImageReference? image,
- Uri? imageUrl,
- Action? action,
- Action? secondaryAction,
- Action? tertiaryAction,
- 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!,
]);
}