HoverWidgetBuilder typedef

HoverWidgetBuilder = Widget Function(BuildContext context, bool hovering, Widget? child)

Builder function type for Hoverable where hovering is a boolean indicating whether the widget is currently being hovered or not. child is the child widget of Hoverable which won't be rebuilt when hovering changes.

Implementation

typedef HoverWidgetBuilder = Widget Function(
  BuildContext context,
  bool hovering,
  Widget? child,
);