MagicPreviewCatalog constructor
const
MagicPreviewCatalog({
- Key? key,
- required List<
PreviewEntry> entries, - String? activeSlug,
- ValueChanged<
PreviewEntry> ? onSelect,
Creates the catalog over entries.
activeSlug selects which entry is shown; when null (or unmatched) the
first entry is shown.
Implementation
const MagicPreviewCatalog({
super.key,
required this.entries,
this.activeSlug,
this.onSelect,
});