color method
Perform color animation.
Set the starting color to begin
.
Set the end time to end
.
Set the blend mode to blendMode
.
Set the animation duration in duration
.
Set the animation curve to curve
.
色アニメーションを行います。
begin
に開始時の色を設定します。
end
に終了時の々を設定します。
blendMode
にブレンドモードを設定します。
duration
にアニメーションの時間を設定します。
curve
にアニメーションのカーブを設定します。
Implementation
Future<void> color({
required Duration duration,
Curve curve = Curves.linear,
Color begin = Colors.transparent,
Color end = Colors.transparent,
BlendMode blendMode = BlendMode.color,
}) {
return runAnimateQuery(
_ColorEffectQuery(
duration: duration,
curve: curve,
begin: begin,
end: end,
blendMode: blendMode,
),
);
}