Tooltip class

Inheritance

Constructors

Tooltip({Key? key, required String message, double? height, double? maxWidth, EdgeInsetsGeometry? padding, EdgeInsetsGeometry? margin, double? verticalOffset, bool? preferBelow, bool? excludeFromSemantics, Color? background, TextStyle? textStyle, Duration? waitDuration, Duration? showDuration, bool? visible, Widget? child})
const

Properties

background Color?
final
child Widget?
The widget below this widget in the tree.
final
excludeFromSemantics bool?
Whether the tooltip's message should be excluded from the semantics tree.
final
hashCode int
The hash code for this object.
no setterinherited
height double?
The height of the tooltip's child.
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
margin EdgeInsetsGeometry?
The empty space that surrounds the tooltip.
final
maxWidth double?
final
message String
The text to display in the tooltip.
final
padding EdgeInsetsGeometry?
The amount of space by which to inset the tooltip's child.
final
preferBelow bool?
Whether the tooltip defaults to being displayed below the widget.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
showDuration Duration?
The length of time that the tooltip will be shown after a long press is released.
final
textStyle TextStyle?
The style to use for the message of the tooltip.
final
verticalOffset double?
The vertical gap between the widget and the displayed tooltip.
final
visible bool?
final
waitDuration Duration?
The length of time that a pointer must hover over a tooltip's widget before the tooltip will be shown.
final

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() → _TooltipState
Creates the mutable state for this widget at a given location in the tree.
override
debugDescribeChildren() List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) String
A string representation of this object.
inherited
toStringDeep({String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a string representation of this node and its descendants.
inherited
toStringShallow({String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a one-line detailed description of the object.
inherited
toStringShort() String
A short, textual description of this widget.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited