target property

double? target
final

Sets a target position for the animation between 0 (start) and 1 (end). When target is changed, it will animate to the new position.

Ex. fade and scale a button when an _over state changes:

MyButton().animate(target: _over ? 1 : 0)
  .fade(end: 0.8).scaleXY(end: 1.1)

Implementation

final double? target;