animationOpensAt property

double animationOpensAt

The point at which the CupertinoContextMenu begins to animate into the open position.

A value between 0.0 and 1.0 corresponding to a point in builder's animation. When passing in an animation to builder the range before animationOpensAt will correspond to the animation when the widget is pressed and held, and the range after is the animation as the menu is fully opening. For an example, see the documentation for builder.


static final double animationOpensAt =
    _previewLongPressTimeout.inMilliseconds / _animationDuration;