Tooltip constructor

const Tooltip({
  1. Key? key,
  2. String? message,
  3. InlineSpan? richMessage,
  4. Widget? child,
  5. TooltipThemeData? style,
  6. bool excludeFromSemantics = false,
  7. bool useMousePosition = true,
  8. bool displayHorizontally = false,
  9. TooltipTriggerMode? triggerMode,
  10. 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',
      );