- override
Override this method to build widgets that depend on the current value of the animation.
Source
@override
Widget build(BuildContext context) {
return new FractionalTranslation(
translation: position.value,
transformHitTests: transformHitTests,
child: child
);
}