TextSelectionToolbarLayoutDelegate class Null safety

Positions the toolbar above anchorAbove if it fits, or otherwise below anchorBelow.

See also:

Inheritance

Constructors

TextSelectionToolbarLayoutDelegate({required Offset anchorAbove, required Offset anchorBelow, bool? fitsAbove})
Creates an instance of TextSelectionToolbarLayoutDelegate.

Properties

anchorAbove → Offset
The focal point above which the toolbar attempts to position itself.
final
anchorBelow → Offset
The focal point above which the toolbar attempts to position itself.
final
fitsAbove → bool?
Whether or not the child should be considered to fit above anchorAbove.
final
hashCode → int
The hash code for this object.
read-onlyinherited
runtimeType → Type
A representation of the runtime type of the object.
read-onlyinherited

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 non-existent method or property is accessed.
inherited
shouldRelayout(covariant TextSelectionToolbarLayoutDelegate 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