Tooltip constructor

const Tooltip(
  1. {Key key,
  2. @required String message,
  3. double height,
  4. EdgeInsetsGeometry padding,
  5. EdgeInsetsGeometry margin,
  6. double verticalOffset,
  7. bool preferBelow,
  8. bool excludeFromSemantics,
  9. Decoration decoration,
  10. TextStyle textStyle,
  11. Duration waitDuration,
  12. Duration showDuration,
  13. 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.

Implementation

const Tooltip({
  Key key,
  @required this.message,
  this.height,
  this.padding,
  this.margin,
  this.verticalOffset,
  this.preferBelow,
  this.excludeFromSemantics,
  this.decoration,
  this.textStyle,
  this.waitDuration,
  this.showDuration,
  this.child,
}) : assert(message != null),
     super(key: key);