ContextMenuPreviewBuilder typedef Null safety

ContextMenuPreviewBuilder = Widget Function(BuildContext context, Animation<double> animation, Widget child)

A function that produces the preview when the CupertinoContextMenu is open.

Called every time the animation value changes.

Implementation

typedef ContextMenuPreviewBuilder = Widget Function(
  BuildContext context,
  Animation<double> animation,
  Widget child,
);