moveY method
T
moveY({})
Adds a MoveEffect that moves the target vertically between the specified begin
and end
pixel amounts (via Transform.translate).
Implementation
T moveY({
Duration? delay,
Duration? duration,
Curve? curve,
double? begin,
double? end,
bool? transformHitTests,
}) {
begin ??= end == null ? MoveEffect.defaultMove : MoveEffect.neutralMove;
end ??= MoveEffect.neutralMove;
return addEffect(MoveEffect(
delay: delay,
duration: duration,
curve: curve,
begin: MoveEffect.neutralValue.copyWith(dy: begin),
end: MoveEffect.neutralValue.copyWith(dy: end),
transformHitTests: transformHitTests,
));
}