tweenTo method Null safety

SizeTween tweenTo(
  1. Size end
)

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

Example:

Size(100, 100).tweenTo(Size.zero)
// Tween(begin: Size(100, 100), end: Size.zero);

Implementation

SizeTween tweenTo(Size end) {
  return SizeTween(begin: this, end: end);
}