factCardDefinition top-level property
Implementation
final factCardDefinition = BlockDefinition(
name: 'FactCard',
builder: (context, props) => FactCard(
title: '${props['title'] ?? 'Fact'}',
body: '${props['body'] ?? props['description'] ?? ''}',
),
allowedPlacements: const [BlockPlacement.chat, BlockPlacement.zone],
interventionEligible: true,
interventionType: BlockInterventionType.contextualHelp,
);