tweenTo method Null safety

Tween<double> tweenTo(
  1. double end
)

Returns a Tween<double> from this value to the given end value

Example:

100.0.tweenTo(200.0) // Tween(begin: 100.0, end: 200.0);

Implementation

Tween<double> tweenTo(double end) {
  return Tween<double>(begin: this, end: end);
}