tweenTo method Null safety

Tween<Offset> tweenTo(
  1. Offset end
)

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

Example:

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

Implementation

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