tooltip method

Widget tooltip({
  1. Key? key,
  2. String? message,
  3. bool preferBelow = true,
  4. bool excludeFromSemantics = false,
  5. EdgeInsetsGeometry? padding,
  6. Decoration? decoration,
  7. TextStyle? textStyle,
  8. double? height,
  9. EdgeInsetsGeometry? margin,
  10. Duration? waitDuration,
  11. Duration? showDuration,
  12. bool? preferBelowForTab,
  13. double? verticalOffset,
  14. bool? enableFeedback,
  15. VoidCallback? onTriggered,
  16. TextAlign? textAlign,
  17. TooltipTriggerMode? triggerMode,
  18. InlineSpan? richMessage,
})

A widget that provides a textual description of the widget's purpose.

Implementation

Widget tooltip({
  Key? key,
  String? message,
  bool preferBelow = true,
  bool excludeFromSemantics = false,
  EdgeInsetsGeometry? padding,
  Decoration? decoration,
  TextStyle? textStyle,
  double? height,
  EdgeInsetsGeometry? margin,
  Duration? waitDuration,
  Duration? showDuration,
  bool? preferBelowForTab,
  double? verticalOffset,
  bool? enableFeedback,
  VoidCallback? onTriggered,
  TextAlign? textAlign,
  TooltipTriggerMode? triggerMode,
  InlineSpan? richMessage,
}) {
  return Tooltip(
    message: 'Tooltip',
    key: key,
    preferBelow: preferBelow,
    excludeFromSemantics: excludeFromSemantics,
    padding: padding,
    decoration: decoration,
    textStyle: textStyle,
    height: height,
    margin: margin,
    waitDuration: waitDuration,
    showDuration: showDuration,
    verticalOffset: verticalOffset,
    enableFeedback: enableFeedback,
    onTriggered: onTriggered,
    richMessage: richMessage,
    textAlign: textAlign,
    triggerMode: triggerMode,
    child: this,
  );
}