MagicPreviewCatalog constructor

const MagicPreviewCatalog({
  1. Key? key,
  2. required List<PreviewEntry> entries,
  3. String? activeSlug,
  4. 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,
});