CaretPopupLayout class
Opens a popup below the caret line when it fits there or that side has more room, and above it otherwise, measuring the popup rather than estimating its height, inside the area it is laid over less padding.
- Inheritance
-
- Object
- SingleChildLayoutDelegate
- CaretPopupLayout
Constructors
- CaretPopupLayout({required Rect caretRect, EdgeInsets padding = EdgeInsets.zero})
-
const
Properties
- caretRect → Rect
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- padding → EdgeInsets
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
getConstraintsForChild(
BoxConstraints constraints) → BoxConstraints -
The constraints for the child given the incoming constraints.
override
-
getPositionForChild(
Size size, Size childSize) → Offset -
The position where the child should be placed.
override
-
getSize(
BoxConstraints constraints) → Size -
The size of this object given the incoming constraints.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
shouldRelayout(
covariant CaretPopupLayout oldDelegate) → bool -
Called whenever a new instance of the custom layout delegate class is
provided to the RenderCustomSingleChildLayoutBox object, or any time
that a new CustomSingleChildLayout object is created with a new instance
of the custom layout delegate class (which amounts to the same thing,
because the latter is implemented in terms of the former).
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited