void setTranslation(Animation<double>? animation) { if (mounted) { setState(() { _translation = animation; }); } }