VerticalBarCell class

One cell of the vertical bar column, passed to the builders of application controls. Values are logical pixels.

Annotations

Constructors

VerticalBarCell({required HorizontalEdge edge, required Rect rect, VoidCallback? invoke, List<VerticalBarAction> overflowed = const <VerticalBarAction>[]})
const

Properties

edge → HorizontalEdge
The column's physical edge; the inner side is the opposite one.
final
hashCode → int
The hash code for this object.
no setterinherited
invoke → VoidCallback?
Invokes the control with this cell as the anchor: the action's VerticalBarAction.onPressed, Navigator.maybePop for the back control, or the menu of an action with menu items or of the overflow cell. Null when the control is disabled.
final
overflowed → List<VerticalBarAction>
For the overflow cell, the actions in its menu, in order and unmodifiable; empty for every other cell. Lets an overflowBuilder show, for example, a badge that one of them carries.
final
rect → Rect
The 48 x 48 cell in window coordinates.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
tooltipConstraints(BuildContext context) → BoxConstraints
The Tooltip.constraints that the package's default controls use: the ones Tooltip would use (the theme's constraints, else a minimum height from the theme or Flutter's default), limited to tooltipMaxWidth of the window, so that long text wraps on the column's inner side instead of covering the column. Pass it with tooltipPosition to give an application control the same tooltip.
tooltipMaxWidth(double windowWidth) → double
The widest tooltip that tooltipPosition keeps beside this cell on the column's inner side, in a window windowWidth wide: the room between the cell and the window edge on that side, less a gap of 8, and never below 0.
tooltipPosition(TooltipPositionContext position) → Offset
Places a tooltip beside this cell on the column's inner side, vertically centred and kept inside the overlay; tooltips above or below would cover the neighbouring cells. Pass it as Tooltip.positionDelegate, with tooltipConstraints as Tooltip.constraints. The tooltip follows the cell in any overlay, also while the page moves, because the target's centre is the cell's (controls are centred in their cells). The package adds tooltips only to its default controls.
toString() → String
A string representation of this object.
inherited

Operators

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