TooltipThemeData class
Theme data for Tooltip.
- Annotations
Constructors
- TooltipThemeData({double? height, double? maxWidth, double? verticalOffset, Color? backgroundColor, TextStyle? textStyle, EdgeInsetsGeometry? padding, EdgeInsetsGeometry? margin, Duration? showDuration, Duration? waitDuration})
-
Creates a TooltipThemeData.
const
Properties
- backgroundColor → Color?
-
The background color for the tooltip.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- height → double?
-
The height of the tooltip's
child
.final - margin → EdgeInsetsGeometry?
-
The empty space that surrounds the tooltip
final
- maxWidth → double?
-
The max width for the tooltip.
final
- padding → EdgeInsetsGeometry?
-
The amount of space by which to inset the tooltip's
child
.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 TextStyle for the tooltip text.
final
- verticalOffset → double?
-
The vertical gap between the widget and the displayed tooltip.
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
-
copyWith(
{double? height, double? maxWidth, double? verticalOffset, Color? backgroundColor, TextStyle? textStyle, EdgeInsetsGeometry? padding, EdgeInsetsGeometry? margin, Duration? showDuration, Duration? waitDuration}) → TooltipThemeData - Makes a copy of TooltipThemeData overwriting selected fields.
-
merge(
TooltipThemeData? other) → TooltipThemeData - Merges the theme data TooltipThemeData.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
covariant TooltipThemeData other) → bool -
The equality operator.
override