TooltipTheme constructor Null safety

const TooltipTheme(
  1. {Key? key,
  2. required TooltipThemeData data,
  3. required Widget child}
)

Creates a tooltip theme that controls the configurations for Tooltip.

The data argument must not be null.

Implementation

const TooltipTheme({
  super.key,
  required this.data,
  required super.child,
}) : assert(data != null);