opacity method
Animates transparency.
Set the starting transparency to begin
.
Set the transparency at the end to end
.
Set the animation duration in duration
.
Set the animation curve to curve
.
透明度のアニメーションを行います。
begin
に開始時の透明度を設定します。
end
に終了時の透明度を設定します。
duration
にアニメーションの時間を設定します。
curve
にアニメーションのカーブを設定します。
Implementation
Future<void> opacity({
required Duration duration,
Curve curve = Curves.linear,
double begin = 0.0,
double end = 0.0,
}) {
return runAnimateQuery(
_OpacityEffectQuery(
duration: duration,
curve: curve,
begin: begin,
end: end,
),
);
}