What is a Tween in Flutter?
Why Interviewers Ask This
This question targets practical, hands-on experience with Flutter. Interviewers want to see if you've worked with these concepts in real projects, not just read about them. Strong answers include concrete examples.
Answer
A Tween (short for in-between) defines how to interpolate between a begin and end value over the course of an animation. It maps the animation controller's 0.0–1.0 range to the actual value range. For example, Tween<double>(begin: 0, end: 300) produces values from 0 to 300 as the animation progresses. Tweens exist for many types: ColorTween, SizeTween, RectTween. You animate a Tween by calling tween.animate(controller) to get an Animation<T>.
Pro Tip
If you're unsure about a detail, say so honestly and explain your reasoning. Interviewers respect candidates who can think through uncertainty rather than bluffing.