Tooltip constructor
const
Tooltip({
- Key? key,
- String? message,
- InlineSpan? richMessage,
- Widget? child,
- TooltipThemeData? style,
- bool excludeFromSemantics = false,
- bool useMousePosition = true,
- bool displayHorizontally = false,
- TooltipTriggerMode? triggerMode,
- bool? enableFeedback,
Creates a tooltip.
Wrap any widget in a Tooltip to show a message on mouse hover
Implementation
const Tooltip({
super.key,
this.message,
this.richMessage,
this.child,
this.style,
this.excludeFromSemantics = false,
this.useMousePosition = true,
this.displayHorizontally = false,
this.triggerMode,
this.enableFeedback,
}) : assert(
(message == null) != (richMessage == null),
'Either `message` or `richMessage` must be specified',
);