Tooltip constructor

const Tooltip({Key key, @required String message, double height, EdgeInsetsGeometry padding, EdgeInsetsGeometry margin, double verticalOffset, bool preferBelow, bool excludeFromSemantics, Decoration decoration, TextStyle textStyle, Duration waitDuration, Duration showDuration, 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);