computeCloseContentOpacity static method
Computes the menu-row opacity while the platter collapses on close.
Native iOS 27 fades the whole _UIContextMenuView exactly linearly in
platter scale: op = (scale − 0.2) / 0.8 (traced 0.872 @ 67 ms,
0.636 @ 100 ms, 0.319 @ 150 ms, 0.126 @ 200 ms). Crisp text still
vanishes within ~35 ms because the rows are blurred at the same time
(see computeCloseContentBlur).
Normalised by closeStartProgress so a close that interrupts a
partially-open menu keeps the rows continuous.
Implementation
static double computeCloseContentOpacity({
required double rawValue,
double closeStartProgress = 1.0,
}) {
final c = closeStartProgress.clamp(0.05, 1.0);
return (rawValue / c).clamp(0.0, 1.0);
}