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({
  Key? key,
  required this.data,
  required Widget child,
}) : assert(data != null), super(key: key, child: child);