PreviewMediaWidget constructor

PreviewMediaWidget({
  1. Key? key,
  2. required MediaProvider mediaProvider,
  3. double? width,
  4. double? height,
  5. Future showInteractiveDelegate(
    1. InteractiveMediaWidget
    )?,
  6. bool useHeroAnimation = true,
  7. bool useRegistry = false,
  8. Widget? fallbackWidget,
  9. List<PopupMenuEntry>? contextMenuEntries,
  10. dynamic onContextMenuSelected(
    1. MediaProvider mediaProvider,
    2. dynamic entry
    )?,
})

Creates a new media preview

Implementation

PreviewMediaWidget({
  Key? key,
  required this.mediaProvider,
  this.width,
  this.height,
  this.showInteractiveDelegate,
  this.useHeroAnimation = true,
  this.useRegistry = false,
  this.fallbackWidget,
  this.contextMenuEntries,
  this.onContextMenuSelected,
}) : super(key: key);