tweenTo method Null safety

ColorTween tweenTo(
  1. Color end
)

Returns a ColorTween from this color to the given end color

Example:

Colors.red.tweenTo(Colors.blue) // ColorTween(begin: Colors.red, end: Colors.blue);

Implementation

ColorTween tweenTo(Color end) {
  return ColorTween(begin: this, end: end);
}