Widget build(int i, double animationValue, Widget widget) { double v = _getValue(values, animationValue, i); return new Opacity( opacity: v, child: widget, ); }