ActionTooltipPolicy class final
Selects the rendered surfaces that show an action tooltip.
The default shows tooltips only for icon-only controls. This keeps a label from being repeated when it is already visible while preserving a textual explanation for icon-only affordances.
Constructors
- ActionTooltipPolicy.allowed({bool primaryIconOnly = true, bool primaryLabeled = false, })
-
Allows tooltips only on the selected rendered surfaces.
const
- ActionTooltipPolicy.always()
-
Shows the tooltip on every action-owned surface.
const
- ActionTooltipPolicy.denied({bool primaryIconOnly = false, bool primaryLabeled = true, })
-
Allows tooltips on every rendered surface except the selected ones.
const
- ActionTooltipPolicy.never()
-
Never shows a visual tooltip for the action.
const
Properties
- hashCode → int
-
The hash code for this object.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
allows(
ActionTooltipSurface surface) → bool -
Whether the action tooltip is allowed on
surface. -
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 ==(
Object other) → bool -
The equality operator.
override