wrap method
Returns a copy of TooltipTheme with the specified child
.
Implementation
@override
Widget wrap(
BuildContext context,
Widget child,
) {
final TooltipTheme? tooltipTheme =
context.findAncestorWidgetOfExactType<TooltipTheme>();
return identical(this, tooltipTheme)
? child
: TooltipTheme(data: data, child: child);
}