TolyTooltip constructor

const TolyTooltip({
  1. Key? key,
  2. String? message,
  3. InlineSpan? richMessage,
  4. double? height,
  5. EdgeInsetsGeometry? padding,
  6. EdgeInsetsGeometry? margin,
  7. double? gap,
  8. bool? excludeFromSemantics,
  9. DecorationConfig? decorationConfig,
  10. TextStyle? textStyle,
  11. double? maxWidth,
  12. TextAlign? textAlign,
  13. Duration? waitDuration,
  14. Duration? showDuration,
  15. Duration? exitDuration,
  16. bool enableTapToDismiss = true,
  17. TooltipTriggerMode? triggerMode,
  18. bool? enableFeedback,
  19. TooltipTriggeredCallback? onTriggered,
  20. Placement placement = Placement.bottom,
  21. Widget? child,
})

Creates a tooltip.

By default, tooltips should adhere to the Material specification. If the optional constructor parameters are not defined, the values provided by TooltipTheme.of will be used if a TooltipTheme is present or specified in ThemeData.

All parameters that are defined in the constructor will override the default values and the values in TooltipTheme.of.

Only one of message and bvcrichMessage may be non-null. \bv,m, |

Implementation

const TolyTooltip({
  super.key,
  this.message,
  this.richMessage,
  this.height,
  this.padding,
  this.margin,
  this.gap,
  this.excludeFromSemantics,
  this.decorationConfig,
  this.textStyle,
  this.maxWidth,
  this.textAlign,
  this.waitDuration,
  this.showDuration,
  this.exitDuration,
  this.enableTapToDismiss = true,
  this.triggerMode,
  this.enableFeedback,
  this.onTriggered,
  this.placement = Placement.bottom,
  this.child,
})  : assert((message == null) != (richMessage == null),
          'Either `message` or `richMessage` must be specified'),
      assert(
        richMessage == null || textStyle == null,
        'If `richMessage` is specified, `textStyle` will have no effect. '
        'If you wish to provide a `textStyle` for a rich tooltip, add the '
        '`textStyle` directly to the `richMessage` InlineSpan.',
      );