double translateY({required bool expanded}) { if (expanded) return 0; return offset > 0 ? offset : 0; }