SContextMenuControllers class

Constructors

SContextMenuControllers()

Properties

hashCode → int
The hash code for this object.
no setterinherited
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
toString() → String
A string representation of this object.
inherited

Operators

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

Static Methods

clampTip(Offset rawTip, Offset cornerPoint, ArrowConfig config, Size overlaySize) → Offset
computeContentHeight(int buttonCount) → double
computeGeometry(Offset pointer, Rect panelRect, Size overlaySize, ArrowConfig config) → ArrowGeometry
computeMenuLayout({required BuildContext context, required Offset globalPosition, required double targetWidth, required int buttonCount, required Size overlaySize, required bool followAnchor, GlobalKey<State<StatefulWidget>>? childKey}) → ({ArrowConfig arrowConfig, Offset followerOffset, Rect overlayPanelRect, Rect panelRect, Offset pointerOffset})
computeTargetWidth(List<SContextMenuItem> buttons, TextStyle style, double screenWidth) → double
createArrowPath(ArrowGeometry geometry, ArrowConfig config) → Path
disposeFocusNodes(List<FocusNode> nodes, List<VoidCallback> activators) → void
getCornerEndPoint(ArrowGeometry geometry, ArrowConfig config) → Offset
getCornerStartPoint(ArrowGeometry geometry, ArrowConfig config) → Offset
isClockwiseCorner(ArrowConfig config) → bool
labelWidth(String text, TextStyle style) → double

Constants

kButtonHeight → const double